Public/Resource Property Types/Add-VSEC2SpotFleetSpotFleetMonitoring.ps1
function Add-VSEC2SpotFleetSpotFleetMonitoring { <# .SYNOPSIS Adds an AWS::EC2::SpotFleet.SpotFleetMonitoring resource property to the template .DESCRIPTION Adds an AWS::EC2::SpotFleet.SpotFleetMonitoring resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html .PARAMETER Enabled Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html#cfn-ec2-spotfleet-spotfleetmonitoring-enabled PrimitiveType: Boolean Required: False UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.EC2.SpotFleet.SpotFleetMonitoring')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [System.Boolean] $Enabled ) Begin { $obj = [PSCustomObject]@{} } Process { foreach ($psParamKey in $PSBoundParameters.Keys) { $val = $((Get-Variable $psParamKey).Value) if ($val -eq "True") { $val = "true" } elseif ($val -eq "False") { $val = "false" } $obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val } } End { $obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.EC2.SpotFleet.SpotFleetMonitoring' } } |