VaporShell.DirectoryService.Classes.ps1

using namespace System
using namespace System.Collections
using namespace System.Collections.Generic
using namespace System.IO
using namespace System.Management.Automation
[CmdletBinding()]
Param()

Write-Verbose "Importing class 'DirectoryServiceMicrosoftADVpcSettings'"

class DirectoryServiceMicrosoftADVpcSettings : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSDirectoryServiceMicrosoftADVpcSettings'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-microsoftad-vpcsettings.html'

    hidden [object] $_subnetIds
    hidden [object] $_vpcId

    [string[]] $SubnetIds
    [string] $VpcId

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name SubnetIds -Value {
            $this._subnetIds
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._subnetIds = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name VpcId -Value {
            $this._vpcId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._vpcId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

    DirectoryServiceMicrosoftADVpcSettings() : base() {}
    DirectoryServiceMicrosoftADVpcSettings([IDictionary] $props) : base($props) {}
    DirectoryServiceMicrosoftADVpcSettings([psobject] $props) : base($props) {}
}

Write-Verbose "Importing class 'DirectoryServiceSimpleADVpcSettings'"

class DirectoryServiceSimpleADVpcSettings : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSDirectoryServiceSimpleADVpcSettings'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-directoryservice-simplead-vpcsettings.html'

    hidden [object] $_subnetIds
    hidden [object] $_vpcId

    [string[]] $SubnetIds
    [string] $VpcId

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name SubnetIds -Value {
            $this._subnetIds
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._subnetIds = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name VpcId -Value {
            $this._vpcId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._vpcId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

    DirectoryServiceSimpleADVpcSettings() : base() {}
    DirectoryServiceSimpleADVpcSettings([IDictionary] $props) : base($props) {}
    DirectoryServiceSimpleADVpcSettings([psobject] $props) : base($props) {}
}

Write-Verbose "Importing class 'DirectoryServiceMicrosoftAD'"

class DirectoryServiceMicrosoftAD : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSDirectoryServiceMicrosoftAD'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-microsoftad.html'

    hidden [string[]] $_attributes = @('Alias','DnsIpAddresses')
    hidden [object] $_condition

    [string] $Type = 'AWS::DirectoryService::MicrosoftAD'
    [bool] $CreateAlias
    [string] $Edition
    [bool] $EnableSso
    [string] $Name
    [string] $Password
    [string] $ShortName
    [DirectoryServiceMicrosoftADVpcSettings] $VpcSettings
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name CreateAlias -Value {
            $this.Properties['CreateAlias']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['CreateAlias'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Edition -Value {
            $this.Properties['Edition']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Edition'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name EnableSso -Value {
            $this.Properties['EnableSso']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EnableSso'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Name -Value {
            $this.Properties['Name']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Name'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Password -Value {
            $this.Properties['Password']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Password'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ShortName -Value {
            $this.Properties['ShortName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ShortName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name VpcSettings -Value {
            $this.Properties['VpcSettings']
        } -SecondValue {
            param([ValidateType(([DirectoryServiceMicrosoftADVpcSettings], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['VpcSettings'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

    DirectoryServiceMicrosoftAD() : base() {}
    DirectoryServiceMicrosoftAD([IDictionary] $props) : base($props) {}
    DirectoryServiceMicrosoftAD([psobject] $props) : base($props) {}
}

Write-Verbose "Importing class 'DirectoryServiceSimpleAD'"

class DirectoryServiceSimpleAD : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSDirectoryServiceSimpleAD'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-directoryservice-simplead.html'

    hidden [string[]] $_attributes = @('Alias','DnsIpAddresses')
    hidden [object] $_condition

    [string] $Type = 'AWS::DirectoryService::SimpleAD'
    [bool] $CreateAlias
    [string] $Description
    [bool] $EnableSso
    [string] $Name
    [string] $Password
    [string] $ShortName
    [string] $Size
    [DirectoryServiceSimpleADVpcSettings] $VpcSettings
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name CreateAlias -Value {
            $this.Properties['CreateAlias']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['CreateAlias'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Description -Value {
            $this.Properties['Description']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Description'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name EnableSso -Value {
            $this.Properties['EnableSso']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EnableSso'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Name -Value {
            $this.Properties['Name']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Name'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Password -Value {
            $this.Properties['Password']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Password'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ShortName -Value {
            $this.Properties['ShortName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ShortName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Size -Value {
            $this.Properties['Size']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Size'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name VpcSettings -Value {
            $this.Properties['VpcSettings']
        } -SecondValue {
            param([ValidateType(([DirectoryServiceSimpleADVpcSettings], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['VpcSettings'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

    DirectoryServiceSimpleAD() : base() {}
    DirectoryServiceSimpleAD([IDictionary] $props) : base($props) {}
    DirectoryServiceSimpleAD([psobject] $props) : base($props) {}
}