VaporShell.CodeStar.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 'CodeStarGitHubRepositoryCode'"

class CodeStarGitHubRepositoryCode : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCodeStarGitHubRepositoryCode'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-code.html'

    hidden [object] $_s3

    [CodeStarGitHubRepositoryS3] $S3

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name S3 -Value {
            $this._s3
        } -SecondValue {
            param([ValidateType(([CodeStarGitHubRepositoryS3], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._s3 = $value
        }
    }

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

Write-Verbose "Importing class 'CodeStarGitHubRepositoryS3'"

class CodeStarGitHubRepositoryS3 : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCodeStarGitHubRepositoryS3'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestar-githubrepository-s3.html'

    hidden [object] $_objectVersion
    hidden [object] $_bucket
    hidden [object] $_key

    [string] $ObjectVersion
    [string] $Bucket
    [string] $Key

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ObjectVersion -Value {
            $this._objectVersion
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._objectVersion = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Bucket -Value {
            $this._bucket
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._bucket = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Key -Value {
            $this._key
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._key = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'CodeStarGitHubRepository'"

class CodeStarGitHubRepository : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCodeStarGitHubRepository'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestar-githubrepository.html'

    hidden [object] $_condition

    [string] $Type = 'AWS::CodeStar::GitHubRepository'
    [bool] $EnableIssues
    [string] $ConnectionArn
    [string] $RepositoryName
    [string] $RepositoryAccessToken
    [string] $RepositoryOwner
    [bool] $IsPrivate
    [CodeStarGitHubRepositoryCode] $Code
    [string] $RepositoryDescription
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name EnableIssues -Value {
            $this.Properties['EnableIssues']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EnableIssues'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ConnectionArn -Value {
            $this.Properties['ConnectionArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ConnectionArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryName -Value {
            $this.Properties['RepositoryName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryAccessToken -Value {
            $this.Properties['RepositoryAccessToken']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryAccessToken'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryOwner -Value {
            $this.Properties['RepositoryOwner']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryOwner'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name IsPrivate -Value {
            $this.Properties['IsPrivate']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['IsPrivate'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Code -Value {
            $this.Properties['Code']
        } -SecondValue {
            param([ValidateType(([CodeStarGitHubRepositoryCode], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Code'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RepositoryDescription -Value {
            $this.Properties['RepositoryDescription']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RepositoryDescription'] = 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
        }
    }

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