VaporShell.WorkSpaces.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 'WorkSpacesWorkspaceWorkspaceProperties'"

class WorkSpacesWorkspaceWorkspaceProperties : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSWorkSpacesWorkspaceWorkspaceProperties'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-workspace-workspaceproperties.html'

    hidden [object] $_computeTypeName
    hidden [object] $_rootVolumeSizeGib
    hidden [object] $_runningMode
    hidden [object] $_runningModeAutoStopTimeoutInMinutes
    hidden [object] $_userVolumeSizeGib

    [string] $ComputeTypeName
    [int] $RootVolumeSizeGib
    [string] $RunningMode
    [int] $RunningModeAutoStopTimeoutInMinutes
    [int] $UserVolumeSizeGib

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ComputeTypeName -Value {
            $this._computeTypeName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._computeTypeName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RootVolumeSizeGib -Value {
            $this._rootVolumeSizeGib
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._rootVolumeSizeGib = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RunningMode -Value {
            $this._runningMode
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._runningMode = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RunningModeAutoStopTimeoutInMinutes -Value {
            $this._runningModeAutoStopTimeoutInMinutes
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._runningModeAutoStopTimeoutInMinutes = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name UserVolumeSizeGib -Value {
            $this._userVolumeSizeGib
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._userVolumeSizeGib = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'WorkSpacesConnectionAliasConnectionAliasAssociation'"

class WorkSpacesConnectionAliasConnectionAliasAssociation : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSWorkSpacesConnectionAliasConnectionAliasAssociation'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspaces-connectionalias-connectionaliasassociation.html'

    hidden [object] $_associationStatus
    hidden [object] $_associatedAccountId
    hidden [object] $_resourceId
    hidden [object] $_connectionIdentifier

    [string] $AssociationStatus
    [string] $AssociatedAccountId
    [string] $ResourceId
    [string] $ConnectionIdentifier

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name AssociationStatus -Value {
            $this._associationStatus
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._associationStatus = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name AssociatedAccountId -Value {
            $this._associatedAccountId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._associatedAccountId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceId -Value {
            $this._resourceId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._resourceId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ConnectionIdentifier -Value {
            $this._connectionIdentifier
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._connectionIdentifier = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'WorkSpacesWorkspace'"

class WorkSpacesWorkspace : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSWorkSpacesWorkspace'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html'

    hidden [object] $_condition

    [string] $Type = 'AWS::WorkSpaces::Workspace'
    [string] $BundleId
    [string] $DirectoryId
    [bool] $RootVolumeEncryptionEnabled
    [VSTag[]] $Tags
    [string] $UserName
    [bool] $UserVolumeEncryptionEnabled
    [string] $VolumeEncryptionKey
    [WorkSpacesWorkspaceWorkspaceProperties] $WorkspaceProperties
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name BundleId -Value {
            $this.Properties['BundleId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['BundleId'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DirectoryId -Value {
            $this.Properties['DirectoryId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DirectoryId'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RootVolumeEncryptionEnabled -Value {
            $this.Properties['RootVolumeEncryptionEnabled']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RootVolumeEncryptionEnabled'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value {
            $this.Properties['Tags']
        } -SecondValue {
            param([TransformTag()] [ValidateType(([IDictionary], [psobject], [VSTag]))] [object] $value)
            $this.Properties['Tags'] = [VSTag]::TransformTag($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name UserName -Value {
            $this.Properties['UserName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['UserName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name UserVolumeEncryptionEnabled -Value {
            $this.Properties['UserVolumeEncryptionEnabled']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['UserVolumeEncryptionEnabled'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name VolumeEncryptionKey -Value {
            $this.Properties['VolumeEncryptionKey']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['VolumeEncryptionKey'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name WorkspaceProperties -Value {
            $this.Properties['WorkspaceProperties']
        } -SecondValue {
            param([ValidateType(([WorkSpacesWorkspaceWorkspaceProperties], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['WorkspaceProperties'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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

Write-Verbose "Importing class 'WorkSpacesConnectionAlias'"

class WorkSpacesConnectionAlias : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSWorkSpacesConnectionAlias'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-connectionalias.html'

    hidden [string[]] $_attributes = @('Associations','AliasId','ConnectionAliasState')
    hidden [object] $_condition

    [string] $Type = 'AWS::WorkSpaces::ConnectionAlias'
    [string] $ConnectionString
    [VSTag[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name ConnectionString -Value {
            $this.Properties['ConnectionString']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ConnectionString'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value {
            $this.Properties['Tags']
        } -SecondValue {
            param([TransformTag()] [ValidateType(([IDictionary], [psobject], [VSTag]))] [object] $value)
            $this.Properties['Tags'] = [VSTag]::TransformTag($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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