Public/Resource Property Types/Add-VSAutoScalingLaunchConfigurationBlockDevice.ps1
function Add-VSAutoScalingLaunchConfigurationBlockDevice { <# .SYNOPSIS Adds an AWS::AutoScaling::LaunchConfiguration.BlockDevice resource property to the template .DESCRIPTION Adds an AWS::AutoScaling::LaunchConfiguration.BlockDevice resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html .PARAMETER DeleteOnTermination Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-deleteonterm PrimitiveType: Boolean Required: False UpdateType: Mutable .PARAMETER Encrypted Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-encrypted PrimitiveType: Boolean Required: False UpdateType: Mutable .PARAMETER Iops Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-iops PrimitiveType: Integer Required: False UpdateType: Mutable .PARAMETER SnapshotId Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-snapshotid PrimitiveType: String Required: False UpdateType: Mutable .PARAMETER VolumeSize Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-volumesize PrimitiveType: Integer Required: False UpdateType: Mutable .PARAMETER VolumeType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig-blockdev-template.html#cfn-as-launchconfig-blockdev-template-volumetype PrimitiveType: String Required: False UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.AutoScaling.LaunchConfiguration.BlockDevice')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [System.Boolean] $DeleteOnTermination, [parameter(Mandatory = $false)] [System.Boolean] $Encrypted, [parameter(Mandatory = $false)] [Int] $Iops, [parameter(Mandatory = $false)] [ValidateScript( { $allowedTypes = "System.String","Vaporshell.Function" if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") { $true } else { throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")." } })] $SnapshotId, [parameter(Mandatory = $false)] [Int] $VolumeSize, [parameter(Mandatory = $false)] [ValidateScript( { $allowedTypes = "System.String","Vaporshell.Function" if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") { $true } else { throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")." } })] $VolumeType ) 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.AutoScaling.LaunchConfiguration.BlockDevice' } } |