Public/Resource Property Types/Add-VSRDSOptionGroupOptionConfiguration.ps1
function Add-VSRDSOptionGroupOptionConfiguration { <# .SYNOPSIS Adds an AWS::RDS::OptionGroup.OptionConfiguration resource property to the template .DESCRIPTION Adds an AWS::RDS::OptionGroup.OptionConfiguration resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html .PARAMETER DBSecurityGroupMemberships Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-dbsecuritygroupmemberships DuplicatesAllowed: True PrimitiveItemType: String Required: False Type: List UpdateType: Mutable .PARAMETER OptionName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-optionname PrimitiveType: String Required: True UpdateType: Mutable .PARAMETER OptionSettings Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-optionsettings Required: False Type: OptionSetting UpdateType: Mutable .PARAMETER Port Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-port PrimitiveType: Integer Required: False UpdateType: Mutable .PARAMETER VpcSecurityGroupMemberships Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-optiongroup-optionconfigurations.html#cfn-rds-optiongroup-optionconfigurations-vpcsecuritygroupmemberships DuplicatesAllowed: True PrimitiveItemType: String Required: False Type: List UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.RDS.OptionGroup.OptionConfiguration')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] $DBSecurityGroupMemberships, [parameter(Mandatory = $true)] [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 ", ")." } })] $OptionName, [parameter(Mandatory = $false)] $OptionSettings, [parameter(Mandatory = $false)] [Int] $Port, [parameter(Mandatory = $false)] $VpcSecurityGroupMemberships ) 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.RDS.OptionGroup.OptionConfiguration' } } |