Checks/Aws/Test-BedrockAgentGuardrailEnabled.ps1

function Test-BedrockAgentGuardrailEnabled {
    <#
    .SYNOPSIS
        Amazon Bedrock agent uses a guardrail to protect agent sessions

    .DESCRIPTION
        **Bedrock agents** should have an associated **guardrail** for their sessions. The evaluation identifies agents without a guardrail linked for input/output screening during interactions.

    .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: bedrock_agent_guardrail_enabled

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