Releases the file system lock from an Amazon FSx for OpenZFS 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.
-
IncompatibleParameterError
–
The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError
–
A generic error indicating a server-side failure.
-
ServiceLimitExceeded
–
An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/f_sx.py
| def release_file_system_nfs_v3_locks(
self,
*,
config_overrides: Optional[FSxClientConfig] = None,
file_system_id: Optional["capo_fsx.types.file_system_id.FileSystemId"] = None,
client_request_token: Optional[
"capo_fsx.types.client_request_token.ClientRequestToken"
] = None,
) -> "capo_fsx.types.release_file_system_nfs_v3_locks_response.ReleaseFileSystemNfsV3LocksResponse":
"""<p>Releases the file system lock from an Amazon FSx for OpenZFS 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.incompatible_parameter_error.IncompatibleParameterError: <p>The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.</p>
capo_fsx.errors.internal_server_error.InternalServerError: <p>A generic error indicating a server-side failure.</p>
capo_fsx.errors.service_limit_exceeded.ServiceLimitExceeded: <p>An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.</p>
capo_fsx.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_fsx.types.release_file_system_nfs_v3_locks_request.ReleaseFileSystemNfsV3LocksRequest]",
) -> OperationResponse[
"capo_fsx.types.release_file_system_nfs_v3_locks_response.ReleaseFileSystemNfsV3LocksResponse"
]:
import capo_fsx._operations.aws_simba_api_service_v20180301.release_file_system_nfs_v3_locks
output, http_response = (
capo_fsx._operations.aws_simba_api_service_v20180301.release_file_system_nfs_v3_locks.release_file_system_nfs_v3_locks(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_fsx.types.release_file_system_nfs_v3_locks_response.ReleaseFileSystemNfsV3LocksResponse",
) -> dict[str, Any]:
import capo_fsx.types.release_file_system_nfs_v3_locks_response
return capo_fsx.types.release_file_system_nfs_v3_locks_response.redact_sensitive(
output
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging(
"ReleaseFileSystemNfsV3Locks", redact_output=_redact_output
),
)
input_: capo_fsx.types.release_file_system_nfs_v3_locks_request.ReleaseFileSystemNfsV3LocksRequest = {}
if file_system_id is not None:
input_["file_system_id"] = file_system_id
if client_request_token is None:
client_request_token = str(uuid.uuid4())
input_["client_request_token"] = client_request_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|