Skip to content

update_appliance

update_appliance(
    appliance_arn: ApplianceArn,
    *,
    config_overrides: Optional[BackupExternalClientConfig] = None,
    appliance_name: Optional[str] = None,
    appliance_iam_role_arn: Optional[RoleArn] = None,
    node_fault_tolerance: Optional[int] = None,
    network_configuration: Optional[ApplianceNetworkConfigurationForUpdate] = None,
    appliance_operation_mode: Optional[ApplianceOperationModeForUpdate] = None,
) -> UpdateApplianceOutput

Updates the name, configuration, or operation mode of the specified appliance.

Parameters:

  • appliance_arn (ApplianceArn) –

    The Amazon Resource Name (ARN) of the appliance.

  • appliance_name (Optional[str], default: None ) –

    The name of the appliance.

  • appliance_iam_role_arn (Optional[RoleArn], default: None ) –

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used by the appliance.

  • node_fault_tolerance (Optional[int], default: None ) –

    The number of node failures that the appliance can tolerate.

  • network_configuration (Optional[ApplianceNetworkConfigurationForUpdate], default: None ) –

    The network configuration of the appliance.

  • appliance_operation_mode (Optional[ApplianceOperationModeForUpdate], default: None ) –

    The operation mode of the appliance.

Raises:

Source code in docs_src/capo_backup_external/_services/backup_external.py
def update_appliance(
    self,
    appliance_arn: "capo_backup_external.types.appliance_arn.ApplianceArn",
    *,
    config_overrides: Optional[BackupExternalClientConfig] = None,
    appliance_name: Optional[str] = None,
    appliance_iam_role_arn: Optional[
        "capo_backup_external.types.role_arn.RoleArn"
    ] = None,
    node_fault_tolerance: Optional[int] = None,
    network_configuration: Optional[
        "capo_backup_external.types.appliance_network_configuration_for_update.ApplianceNetworkConfigurationForUpdate"
    ] = None,
    appliance_operation_mode: Optional[
        "capo_backup_external.types.appliance_operation_mode_for_update.ApplianceOperationModeForUpdate"
    ] = None,
) -> "capo_backup_external.types.update_appliance_output.UpdateApplianceOutput":
    """Updates the name, configuration, or operation mode of the specified appliance.

    Args:
        appliance_arn: The Amazon Resource Name (ARN) of the appliance.
        appliance_name: The name of the appliance.
        appliance_iam_role_arn: The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used by the appliance.
        node_fault_tolerance: The number of node failures that the appliance can tolerate.
        network_configuration: The network configuration of the appliance.
        appliance_operation_mode: The operation mode of the appliance.

    Raises:
        capo_backup_external.errors.access_denied_exception.AccessDeniedException: The request was denied because you do not have permission to perform the requested operation.
        capo_backup_external.errors.conflict_exception.ConflictException: The request conflicts with the current state of the specified resource.
        capo_backup_external.errors.internal_server_exception.InternalServerException: The request failed because of an internal server error.
        capo_backup_external.errors.resource_not_found_exception.ResourceNotFoundException: The specified resource was not found.
        capo_backup_external.errors.throttling_exception.ThrottlingException: The request was denied because the request rate is too high.
        capo_backup_external.errors.validation_exception.ValidationException: The request contains invalid parameters.
        capo_backup_external.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_backup_external.types.update_appliance_input.UpdateApplianceInput]",
    ) -> OperationResponse[
        "capo_backup_external.types.update_appliance_output.UpdateApplianceOutput"
    ]:
        import capo_backup_external._operations.backup_external.update_appliance

        output, http_response = (
            capo_backup_external._operations.backup_external.update_appliance.update_appliance(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateAppliance")
    )
    input_: capo_backup_external.types.update_appliance_input.UpdateApplianceInput = {
        "appliance_arn": appliance_arn
    }
    if appliance_name is not None:
        input_["appliance_name"] = appliance_name
    if appliance_iam_role_arn is not None:
        input_["appliance_iam_role_arn"] = appliance_iam_role_arn
    if node_fault_tolerance is not None:
        input_["node_fault_tolerance"] = node_fault_tolerance
    if network_configuration is not None:
        input_["network_configuration"] = network_configuration
    if appliance_operation_mode is not None:
        input_["appliance_operation_mode"] = appliance_operation_mode

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output