Checks/Aws/Test-CognitoUserPoolDeletionProtectionEnabled.ps1
|
function Test-CognitoUserPoolDeletionProtectionEnabled { <# .SYNOPSIS Cognito user pool has deletion protection enabled .DESCRIPTION **Amazon Cognito user pools** have **deletion protection** set to `ACTIVE`. The evaluation inspects each user pool's deletion protection status. .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: cognito_user_pool_deletion_protection_enabled [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cognito_user_pool_deletion_protection_enabled for reference.', 'N/A', 'cognito Resources') } |