Public/Resource Property Types/Add-VSApplicationAutoScalingScalingPolicyStepAdjustment.ps1
function Add-VSApplicationAutoScalingScalingPolicyStepAdjustment { <# .SYNOPSIS Adds an AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment resource property to the template .DESCRIPTION Adds an AWS::ApplicationAutoScaling::ScalingPolicy.StepAdjustment resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html .PARAMETER MetricIntervalLowerBound Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-metricintervallowerbound PrimitiveType: Double Required: False UpdateType: Mutable .PARAMETER MetricIntervalUpperBound Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-metricintervalupperbound PrimitiveType: Double Required: False UpdateType: Mutable .PARAMETER ScalingAdjustment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment.html#cfn-applicationautoscaling-scalingpolicy-stepscalingpolicyconfiguration-stepadjustment-scalingadjustment PrimitiveType: Integer Required: True UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.ApplicationAutoScaling.ScalingPolicy.StepAdjustment')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [Int] $MetricIntervalLowerBound, [parameter(Mandatory = $false)] [Int] $MetricIntervalUpperBound, [parameter(Mandatory = $true)] [Int] $ScalingAdjustment ) Begin { $obj = [PSCustomObject]@{} } Process { foreach ($key in $PSBoundParameters.Keys) { $val = $((Get-Variable $key).Value) if ($val -eq "True") { $val = "true" } elseif ($val -eq "False") { $val = "false" } $obj | Add-Member -MemberType NoteProperty -Name $key -Value $val } } End { $obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.ApplicationAutoScaling.ScalingPolicy.StepAdjustment' } } |