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:
Source code in docs_src/capo_fsx/_services/async_f_sx.py
| async def start_misconfigured_state_recovery(
self,
*,
config_overrides: Optional[AsyncFSxClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_fsx.types.start_misconfigured_state_recovery_request.StartMisconfiguredStateRecoveryRequest]",
) -> AsyncOperationResponse[
"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,
) = await capo_fsx._operations.aws_simba_api_service_v20180301.start_misconfigured_state_recovery.async_start_misconfigured_state_recovery(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|