Public/Resource Property Types/Add-VSGluePartitionPartitionInput.ps1
function Add-VSGluePartitionPartitionInput { <# .SYNOPSIS Adds an AWS::Glue::Partition.PartitionInput resource property to the template .DESCRIPTION Adds an AWS::Glue::Partition.PartitionInput resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html .PARAMETER Parameters Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-parameters PrimitiveType: Json UpdateType: Mutable .PARAMETER StorageDescriptor Type: StorageDescriptor Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-storagedescriptor UpdateType: Mutable .PARAMETER Values PrimitiveItemType: String Type: List Required: True Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-partitioninput.html#cfn-glue-partition-partitioninput-values UpdateType: Immutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.Glue.Partition.PartitionInput')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [ValidateScript( { $allowedTypes = "System.String","System.Collections.Hashtable","System.Management.Automation.PSCustomObject" if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") { $true } else { $PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ").")) } })] $Parameters, [parameter(Mandatory = $false)] $StorageDescriptor, [parameter(Mandatory = $true)] $Values ) Begin { $obj = [PSCustomObject]@{} } Process { foreach ($key in $PSBoundParameters.Keys) { $obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key } } End { $obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.Glue.Partition.PartitionInput' } } |