Public/Resource Property Types/Add-VSECSServiceDeploymentConfiguration.ps1
function Add-VSECSServiceDeploymentConfiguration { <# .SYNOPSIS Adds an AWS::ECS::Service.DeploymentConfiguration resource property to the template .DESCRIPTION Adds an AWS::ECS::Service.DeploymentConfiguration resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html .PARAMETER MaximumPercent Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-maximumpercent PrimitiveType: Integer Required: False UpdateType: Mutable .PARAMETER MinimumHealthyPercent Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html#cfn-ecs-service-deploymentconfiguration-minimumhealthypercent PrimitiveType: Integer Required: False UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.ECS.Service.DeploymentConfiguration')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [Int] $MaximumPercent, [parameter(Mandatory = $false)] [Int] $MinimumHealthyPercent ) 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.ECS.Service.DeploymentConfiguration' } } |