VaporShell.LookoutEquipment.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 'LookoutEquipmentInferenceScheduler'"

class LookoutEquipmentInferenceScheduler : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSLookoutEquipmentInferenceScheduler'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html'

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

    [string] $Type = 'AWS::LookoutEquipment::InferenceScheduler'
    [int] $DataDelayOffsetInMinutes
    [VSJson] $DataInputConfiguration
    [VSJson] $DataOutputConfiguration
    [string] $DataUploadFrequency
    [string] $InferenceSchedulerName
    [string] $ModelName
    [string] $RoleArn
    [string] $ServerSideKmsKeyId
    [VSTag[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name DataDelayOffsetInMinutes -Value {
            $this.Properties['DataDelayOffsetInMinutes']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DataDelayOffsetInMinutes'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DataInputConfiguration -Value {
            $this.Properties['DataInputConfiguration']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['DataInputConfiguration'] = [VSJson]::Transform($value)
            Write-Debug $this.Properties['DataInputConfiguration']
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DataOutputConfiguration -Value {
            $this.Properties['DataOutputConfiguration']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['DataOutputConfiguration'] = [VSJson]::Transform($value)
            Write-Debug $this.Properties['DataOutputConfiguration']
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name DataUploadFrequency -Value {
            $this.Properties['DataUploadFrequency']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DataUploadFrequency'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name InferenceSchedulerName -Value {
            $this.Properties['InferenceSchedulerName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['InferenceSchedulerName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ModelName -Value {
            $this.Properties['ModelName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ModelName'] = 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 ServerSideKmsKeyId -Value {
            $this.Properties['ServerSideKmsKeyId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ServerSideKmsKeyId'] = 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
        }
    }

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