Checks/Aws/Test-SagemakerNotebookInstanceRootAccessDisabled.ps1

function Test-SagemakerNotebookInstanceRootAccessDisabled {
    <#
    .SYNOPSIS
        Amazon SageMaker notebook instance has root access disabled

    .DESCRIPTION
        **Amazon SageMaker notebook instances** with user **root access disabled**. The evaluation checks whether interactive users can obtain root privileges on the instance, highlighting notebooks where `RootAccess` is not set to `Disabled`.

    .PARAMETER Check
        CIEMCheck object containing check metadata.
    #>

    [CmdletBinding()]
    [OutputType([PSCustomObject[]])]
    param(
        [Parameter(Mandatory)]
        [CIEMCheck]$Check
    )

    $ErrorActionPreference = 'Stop'

    # TODO: Implement check logic based on Prowler check: sagemaker_notebook_instance_root_access_disabled

    [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check sagemaker_notebook_instance_root_access_disabled for reference.', 'N/A', 'sagemaker Resources')
}