cloud-connect-aws/Remove-CsAwsAccount.psm1
function Remove-CsAwsAccount { <# .SYNOPSIS Delete a set of Aws Accounts by specifying their IDs .PARAMETER ID IDs of accounts to remove #> [CmdletBinding()] [OutputType([psobject])] param( [Parameter(Mandatory = $true)] [array] $Id ) process{ $Param = @{ Uri = '/cloud-connect-aws/entities/accounts/v1?ids=' Method = 'delete' Header = @{ accept = 'application/json' 'content-type' = 'application/json' } } switch ($PSBoundParameters.Keys) { 'Verbose' { $Param['Verbose'] = $true } 'Debug' { $Param['Debug'] = $true } } Split-CsArray -Activity $MyInvocation.MyCommand.Name -Param $Param -Id $Id } } |