Checks/Aws/Test-ElbConnectionDrainingEnabled.ps1
|
function Test-ElbConnectionDrainingEnabled { <# .SYNOPSIS Classic Load Balancer has connection draining enabled .DESCRIPTION **Classic Load Balancer** has **connection draining** enabled, so deregistering or unhealthy instances stop receiving new requests while existing connections are allowed to complete within the configured drain window. .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: elb_connection_draining_enabled [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check elb_connection_draining_enabled for reference.', 'N/A', 'elb Resources') } |