Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with FSx for Lustre.
Parameters:
-
location_arn
(LocationArn)
–
Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating.
-
subdirectory
(Optional[SmbSubdirectory], default:
None
)
–
Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (/).
Raises:
Source code in docs_src/capo_datasync/_services/data_sync.py
| def update_location_fsx_lustre(
self,
location_arn: "capo_datasync.types.location_arn.LocationArn",
*,
config_overrides: Optional[DataSyncClientConfig] = None,
subdirectory: Optional[
"capo_datasync.types.smb_subdirectory.SmbSubdirectory"
] = None,
) -> "capo_datasync.types.update_location_fsx_lustre_response.UpdateLocationFsxLustreResponse":
"""<p>Modifies the following configuration parameters of the Amazon FSx for Lustre transfer location that you're using with DataSync.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-lustre-location.html">Configuring DataSync transfers with FSx for Lustre</a>.</p>
Args:
location_arn: <p>Specifies the Amazon Resource Name (ARN) of the FSx for Lustre transfer location that you're updating.</p>
subdirectory: <p>Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.</p> <p>When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory (<code>/</code>).</p>
Raises:
capo_datasync.errors.internal_exception.InternalException: <p>This exception is thrown when an error occurs in the DataSync service.</p>
capo_datasync.errors.invalid_request_exception.InvalidRequestException: <p>This exception is thrown when the client submits a malformed request.</p>
capo_datasync.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_datasync.types.update_location_fsx_lustre_request.UpdateLocationFsxLustreRequest]",
) -> OperationResponse[
"capo_datasync.types.update_location_fsx_lustre_response.UpdateLocationFsxLustreResponse"
]:
import capo_datasync._operations.fmrs_service.update_location_fsx_lustre
output, http_response = (
capo_datasync._operations.fmrs_service.update_location_fsx_lustre.update_location_fsx_lustre(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateLocationFsxLustre")
)
input_: capo_datasync.types.update_location_fsx_lustre_request.UpdateLocationFsxLustreRequest = {
"location_arn": location_arn
}
if subdirectory is not None:
input_["subdirectory"] = subdirectory
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|