Skip to content

describe_location_fsx_open_zfs

describe_location_fsx_open_zfs(
    location_arn: LocationArn,
    *,
    config_overrides: Optional[DataSyncClientConfig] = None,
) -> DescribeLocationFsxOpenZfsResponse

Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.

Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs operation.

Parameters:

  • location_arn (LocationArn) –

    The Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe.

Raises:

Source code in docs_src/capo_datasync/_services/data_sync.py
def describe_location_fsx_open_zfs(
    self,
    location_arn: "capo_datasync.types.location_arn.LocationArn",
    *,
    config_overrides: Optional[DataSyncClientConfig] = None,
) -> "capo_datasync.types.describe_location_fsx_open_zfs_response.DescribeLocationFsxOpenZfsResponse":
    """<p>Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.</p> <note> <p>Response elements related to <code>SMB</code> aren't supported with the <code>DescribeLocationFsxOpenZfs</code> operation.</p> </note>

    Args:
        location_arn: <p>The Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe.</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.describe_location_fsx_open_zfs_request.DescribeLocationFsxOpenZfsRequest]",
    ) -> OperationResponse[
        "capo_datasync.types.describe_location_fsx_open_zfs_response.DescribeLocationFsxOpenZfsResponse"
    ]:
        import capo_datasync._operations.fmrs_service.describe_location_fsx_open_zfs

        output, http_response = (
            capo_datasync._operations.fmrs_service.describe_location_fsx_open_zfs.describe_location_fsx_open_zfs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_datasync.types.describe_location_fsx_open_zfs_response.DescribeLocationFsxOpenZfsResponse",
    ) -> dict[str, Any]:
        import capo_datasync.types.describe_location_fsx_open_zfs_response

        return capo_datasync.types.describe_location_fsx_open_zfs_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "DescribeLocationFsxOpenZfs", redact_output=_redact_output
        ),
    )
    input_: capo_datasync.types.describe_location_fsx_open_zfs_request.DescribeLocationFsxOpenZfsRequest = {
        "location_arn": location_arn
    }

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