Checks/Aws/Test-RdsInstanceDeletionProtection.ps1
|
function Test-RdsInstanceDeletionProtection { <# .SYNOPSIS RDS instance has deletion protection enabled .DESCRIPTION **RDS DB instances** are assessed for **deletion protection**. If an instance belongs to an Aurora cluster, the setting is evaluated at the cluster level; otherwise, it is evaluated on the instance itself. .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: rds_instance_deletion_protection [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check rds_instance_deletion_protection for reference.', 'N/A', 'rds Resources') } |