VaporShell.Cloud9.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 'Cloud9EnvironmentEC2Repository'"

class Cloud9EnvironmentEC2Repository : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCloud9EnvironmentEC2Repository'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html'

    hidden [object] $_pathComponent
    hidden [object] $_repositoryUrl

    [string] $PathComponent
    [string] $RepositoryUrl

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

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

Write-Verbose "Importing class 'Cloud9EnvironmentEC2'"

class Cloud9EnvironmentEC2 : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCloud9EnvironmentEC2'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html'

    hidden [string[]] $_attributes = @('Arn','Name')
    hidden [object] $_condition

    [string] $Type = 'AWS::Cloud9::EnvironmentEC2'
    [Cloud9EnvironmentEC2Repository[]] $Repositories
    [string] $OwnerArn
    [string] $Description
    [string] $ConnectionType
    [int] $AutomaticStopTimeMinutes
    [string] $ImageId
    [string] $SubnetId
    [string] $InstanceType
    [VSTag[]] $Tags
    [string] $Name
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name Repositories -Value {
            $this.Properties['Repositories']
        } -SecondValue {
            param([ValidateType(([Cloud9EnvironmentEC2Repository], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['Repositories'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name OwnerArn -Value {
            $this.Properties['OwnerArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['OwnerArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $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 ConnectionType -Value {
            $this.Properties['ConnectionType']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ConnectionType'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name AutomaticStopTimeMinutes -Value {
            $this.Properties['AutomaticStopTimeMinutes']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['AutomaticStopTimeMinutes'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ImageId -Value {
            $this.Properties['ImageId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ImageId'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SubnetId -Value {
            $this.Properties['SubnetId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['SubnetId'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name InstanceType -Value {
            $this.Properties['InstanceType']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['InstanceType'] = 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 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 Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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