VaporShell.Forecast.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 'ForecastDatasetGroup'" class ForecastDatasetGroup : VSResource { hidden [string] $_vsFunctionName = 'New-VSForecastDatasetGroup' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-datasetgroup.html' hidden [string[]] $_attributes = @('DatasetGroupArn') hidden [object] $_condition [string] $Type = 'AWS::Forecast::DatasetGroup' [string[]] $DatasetArns [string] $DatasetGroupName [string] $Domain [VSTag[]] $Tags [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetArns -Value { $this.Properties['DatasetArns'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['DatasetArns'] = @($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetGroupName -Value { $this.Properties['DatasetGroupName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DatasetGroupName'] = 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 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 } } ForecastDatasetGroup() : base() {} ForecastDatasetGroup([IDictionary] $props) : base($props) {} ForecastDatasetGroup([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ForecastDataset'" class ForecastDataset : VSResource { hidden [string] $_vsFunctionName = 'New-VSForecastDataset' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-forecast-dataset.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::Forecast::Dataset' [string] $DatasetName [string] $DatasetType [string] $DataFrequency [string] $Domain [VSJson] $EncryptionConfig [VSJson] $Schema [VSJson[]] $Tags [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name DatasetName -Value { $this.Properties['DatasetName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DatasetName'] = 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 DataFrequency -Value { $this.Properties['DataFrequency'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DataFrequency'] = 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 EncryptionConfig -Value { $this.Properties['EncryptionConfig'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['EncryptionConfig'] = [VSJson]::Transform($value) Write-Debug $this.Properties['EncryptionConfig'] } $this | Add-Member -Force -MemberType ScriptProperty -Name Schema -Value { $this.Properties['Schema'] } -SecondValue { param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value) $this.Properties['Schema'] = [VSJson]::Transform($value) Write-Debug $this.Properties['Schema'] } $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value { $this.Properties['Tags'] } -SecondValue { param([ValidateType(([VSJson], [string], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['Tags'] = @($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } ForecastDataset() : base() {} ForecastDataset([IDictionary] $props) : base($props) {} ForecastDataset([psobject] $props) : base($props) {} } |