Public/SDK Wrappers/CloudFormation/Remove-VSStackSet.ps1
function Remove-VSStackSet { <# .SYNOPSIS Removes a Stack Set. .PARAMETER StackName The name or the unique stack ID that is associated with the stack. .PARAMETER ProfileName The name of the configuration profile to deploy the stack with. Defaults to $env:AWS_PROFILE, if set. .FUNCTIONALITY Vaporshell #> [cmdletbinding(SupportsShouldProcess = $true,ConfirmImpact = "High")] Param ( [parameter(Mandatory = $true)] [String] $StackSetName, [parameter(Mandatory = $false)] [String] $ProfileName = $env:AWS_PROFILE ) Process { $method = "DeleteStackSet" $requestType = "Amazon.CloudFormation.Model.$($method)Request" $request = New-Object $requestType -Property @{StackSetName = $StackSetName} if ($PSCmdlet.ShouldProcess($request)) { $results = ProcessRequest $PSCmdlet.ParameterSetName $ProfileName $method $request if (!$results) { return } elseif ($results -is 'System.Management.Automation.ErrorRecord') { $PSCmdlet.ThrowTerminatingError($results) } elseif ($results) { return $results } } } } |