Skip to content

get_mount_target async

get_mount_target(
    mount_target_id: MountTargetId,
    *,
    config_overrides: Optional[AsyncS3FilesClientConfig] = None,
) -> GetMountTargetResponse

Returns detailed resource information for the specified mount target including network configuration.

Parameters:

  • mount_target_id (MountTargetId) –

    The ID of the mount target to retrieve information for.

Raises:

Source code in docs_src/capo_s3files/_services/async_s3_files.py
async def get_mount_target(
    self,
    mount_target_id: "capo_s3files.types.mount_target_id.MountTargetId",
    *,
    config_overrides: Optional[AsyncS3FilesClientConfig] = None,
) -> "capo_s3files.types.get_mount_target_response.GetMountTargetResponse":
    """<p>Returns detailed resource information for the specified mount target including network configuration.</p>

    Args:
        mount_target_id: <p>The ID of the mount target to retrieve information for.</p>

    Raises:
        capo_s3files.errors.throttling_exception.ThrottlingException: <p>The request was throttled. Retry your request using exponential backoff.</p>
        capo_s3files.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_s3files.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found. Verify that the resource exists and that you have permission to access it.</p>
        capo_s3files.errors.validation_exception.ValidationException: <p>The input parameters are not valid. Check the parameter values and try again.</p>
        capo_s3files.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_s3files.types.get_mount_target_request.GetMountTargetRequest]",
    ) -> AsyncOperationResponse[
        "capo_s3files.types.get_mount_target_response.GetMountTargetResponse"
    ]:
        import capo_s3files._operations.s3_files.get_mount_target

        (
            output,
            http_response,
        ) = await capo_s3files._operations.s3_files.get_mount_target.async_get_mount_target(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetMountTarget")
    )
    input_: capo_s3files.types.get_mount_target_request.GetMountTargetRequest = {
        "mount_target_id": mount_target_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output