Skip to content

start_misconfigured_state_recovery

start_misconfigured_state_recovery(
    *,
    config_overrides: Optional[FSxClientConfig] = None,
    client_request_token: Optional[ClientRequestToken] = None,
    file_system_id: Optional[FileSystemId] = None,
) -> StartMisconfiguredStateRecoveryResponse

After performing steps to repair the Active Directory configuration of an FSx for Windows File Server file system, use this action to initiate the process of Amazon FSx attempting to reconnect to the file system.

Raises:

  • BadRequest –

    A generic error indicating a failure with a client request.

  • FileSystemNotFound –

    No Amazon FSx file systems were found based upon supplied parameters.

  • InternalServerError –

    A generic error indicating a server-side failure.

  • UnknownServiceError –

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

Source code in docs_src/capo_fsx/_services/f_sx.py
def start_misconfigured_state_recovery(
    self,
    *,
    config_overrides: Optional[FSxClientConfig] = None,
    client_request_token: Optional[
        "capo_fsx.types.client_request_token.ClientRequestToken"
    ] = None,
    file_system_id: Optional["capo_fsx.types.file_system_id.FileSystemId"] = None,
) -> "capo_fsx.types.start_misconfigured_state_recovery_response.StartMisconfiguredStateRecoveryResponse":
    """<p>After performing steps to repair the Active Directory configuration of an FSx for Windows File Server file system, use this action to initiate the process of Amazon FSx attempting to reconnect to the file system.</p>

    Raises:
        capo_fsx.errors.bad_request.BadRequest: <p>A generic error indicating a failure with a client request.</p>
        capo_fsx.errors.file_system_not_found.FileSystemNotFound: <p>No Amazon FSx file systems were found based upon supplied parameters.</p>
        capo_fsx.errors.internal_server_error.InternalServerError: <p>A generic error indicating a server-side failure.</p>
        capo_fsx.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_fsx.types.start_misconfigured_state_recovery_request.StartMisconfiguredStateRecoveryRequest]",
    ) -> OperationResponse[
        "capo_fsx.types.start_misconfigured_state_recovery_response.StartMisconfiguredStateRecoveryResponse"
    ]:
        import capo_fsx._operations.aws_simba_api_service_v20180301.start_misconfigured_state_recovery

        output, http_response = (
            capo_fsx._operations.aws_simba_api_service_v20180301.start_misconfigured_state_recovery.start_misconfigured_state_recovery(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_fsx.types.start_misconfigured_state_recovery_response.StartMisconfiguredStateRecoveryResponse",
    ) -> dict[str, Any]:
        import capo_fsx.types.start_misconfigured_state_recovery_response

        return capo_fsx.types.start_misconfigured_state_recovery_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "StartMisconfiguredStateRecovery", redact_output=_redact_output
        ),
    )
    input_: capo_fsx.types.start_misconfigured_state_recovery_request.StartMisconfiguredStateRecoveryRequest = {}
    if client_request_token is None:
        client_request_token = str(uuid.uuid4())
    input_["client_request_token"] = client_request_token
    if file_system_id is not None:
        input_["file_system_id"] = file_system_id

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