VaporShell.Personalize.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 'PersonalizeDatasetDatasetImportJob'"

class PersonalizeDatasetDatasetImportJob : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSPersonalizeDatasetDatasetImportJob'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-dataset-datasetimportjob.html'

    hidden [object] $_jobName
    hidden [object] $_datasetImportJobArn
    hidden [object] $_datasetArn
    hidden [VSJson] $_dataSource
    hidden [object] $_roleArn

    [string] $JobName
    [string] $DatasetImportJobArn
    [string] $DatasetArn
    [VSJson] $DataSource
    [string] $RoleArn

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name JobName -Value {
            $this._jobName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._jobName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetImportJobArn -Value {
            $this._datasetImportJobArn
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._datasetImportJobArn = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetArn -Value {
            $this._datasetArn
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._datasetArn = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DataSource -Value {
            $this._dataSource
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this._dataSource = [VSJson]::Transform($value)
            Write-Debug $this._dataSource
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RoleArn -Value {
            $this._roleArn
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._roleArn = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'PersonalizeSolutionSolutionConfig'"

class PersonalizeSolutionSolutionConfig : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSPersonalizeSolutionSolutionConfig'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-personalize-solution-solutionconfig.html'

    hidden [object] $_algorithmHyperParameters
    hidden [VSJson] $_autoMLConfig
    hidden [object] $_eventValueThreshold
    hidden [object] $_featureTransformationParameters
    hidden [VSJson] $_hpoConfig

    [string] $AlgorithmHyperParameters
    [VSJson] $AutoMLConfig
    [string] $EventValueThreshold
    [string] $FeatureTransformationParameters
    [VSJson] $HpoConfig

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name AlgorithmHyperParameters -Value {
            $this._algorithmHyperParameters
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._algorithmHyperParameters = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name AutoMLConfig -Value {
            $this._autoMLConfig
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this._autoMLConfig = [VSJson]::Transform($value)
            Write-Debug $this._autoMLConfig
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name EventValueThreshold -Value {
            $this._eventValueThreshold
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._eventValueThreshold = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name FeatureTransformationParameters -Value {
            $this._featureTransformationParameters
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._featureTransformationParameters = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name HpoConfig -Value {
            $this._hpoConfig
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this._hpoConfig = [VSJson]::Transform($value)
            Write-Debug $this._hpoConfig
        }
    }

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

Write-Verbose "Importing class 'PersonalizeSolution'"

class PersonalizeSolution : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSPersonalizeSolution'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-solution.html'

    hidden [string[]] $_attributes = @('SolutionArn')
    hidden [object] $_condition

    [string] $Type = 'AWS::Personalize::Solution'
    [string] $Name
    [string] $EventType
    [string] $DatasetGroupArn
    [bool] $PerformAutoML
    [bool] $PerformHPO
    [string] $RecipeArn
    [PersonalizeSolutionSolutionConfig] $SolutionConfig
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 EventType -Value {
            $this.Properties['EventType']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EventType'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetGroupArn -Value {
            $this.Properties['DatasetGroupArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DatasetGroupArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name PerformAutoML -Value {
            $this.Properties['PerformAutoML']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['PerformAutoML'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name PerformHPO -Value {
            $this.Properties['PerformHPO']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['PerformHPO'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RecipeArn -Value {
            $this.Properties['RecipeArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RecipeArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SolutionConfig -Value {
            $this.Properties['SolutionConfig']
        } -SecondValue {
            param([ValidateType(([PersonalizeSolutionSolutionConfig], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['SolutionConfig'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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

Write-Verbose "Importing class 'PersonalizeSchema'"

class PersonalizeSchema : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSPersonalizeSchema'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-schema.html'

    hidden [string[]] $_attributes = @('SchemaArn')
    hidden [object] $_condition

    [string] $Type = 'AWS::Personalize::Schema'
    [string] $Name
    [string] $Schema
    [string] $Domain
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 Schema -Value {
            $this.Properties['Schema']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Schema'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Domain -Value {
            $this.Properties['Domain']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Domain'] = 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
        }
    }

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

Write-Verbose "Importing class 'PersonalizeDatasetGroup'"

class PersonalizeDatasetGroup : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSPersonalizeDatasetGroup'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-datasetgroup.html'

    hidden [string[]] $_attributes = @('DatasetGroupArn')
    hidden [object] $_condition

    [string] $Type = 'AWS::Personalize::DatasetGroup'
    [string] $Name
    [string] $KmsKeyArn
    [string] $RoleArn
    [string] $Domain
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 KmsKeyArn -Value {
            $this.Properties['KmsKeyArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['KmsKeyArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RoleArn -Value {
            $this.Properties['RoleArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RoleArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Domain -Value {
            $this.Properties['Domain']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Domain'] = 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
        }
    }

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

Write-Verbose "Importing class 'PersonalizeDataset'"

class PersonalizeDataset : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSPersonalizeDataset'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-dataset.html'

    hidden [string[]] $_attributes = @('DatasetArn')
    hidden [object] $_condition

    [string] $Type = 'AWS::Personalize::Dataset'
    [string] $Name
    [string] $DatasetType
    [string] $DatasetGroupArn
    [string] $SchemaArn
    [PersonalizeDatasetDatasetImportJob] $DatasetImportJob
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 DatasetType -Value {
            $this.Properties['DatasetType']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DatasetType'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetGroupArn -Value {
            $this.Properties['DatasetGroupArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DatasetGroupArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SchemaArn -Value {
            $this.Properties['SchemaArn']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['SchemaArn'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetImportJob -Value {
            $this.Properties['DatasetImportJob']
        } -SecondValue {
            param([ValidateType(([PersonalizeDatasetDatasetImportJob], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DatasetImportJob'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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