VaporShell.MediaConvert.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 'MediaConvertJobTemplateHopDestination'"

class MediaConvertJobTemplateHopDestination : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSMediaConvertJobTemplateHopDestination'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-hopdestination.html'

    hidden [object] $_waitMinutes
    hidden [object] $_priority
    hidden [object] $_queue

    [int] $WaitMinutes
    [int] $Priority
    [string] $Queue

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name WaitMinutes -Value {
            $this._waitMinutes
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._waitMinutes = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Priority -Value {
            $this._priority
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._priority = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Queue -Value {
            $this._queue
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._queue = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'MediaConvertJobTemplateAccelerationSettings'"

class MediaConvertJobTemplateAccelerationSettings : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSMediaConvertJobTemplateAccelerationSettings'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-accelerationsettings.html'

    hidden [object] $_mode

    [string] $Mode

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

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

Write-Verbose "Importing class 'MediaConvertQueue'"

class MediaConvertQueue : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMediaConvertQueue'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-queue.html'

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

    [string] $Type = 'AWS::MediaConvert::Queue'
    [string] $Status
    [string] $Description
    [string] $PricingPlan
    [VSJson] $Tags
    [string] $Name
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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

Write-Verbose "Importing class 'MediaConvertJobTemplate'"

class MediaConvertJobTemplate : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMediaConvertJobTemplate'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-jobtemplate.html'

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

    [string] $Type = 'AWS::MediaConvert::JobTemplate'
    [string] $Category
    [string] $Description
    [MediaConvertJobTemplateAccelerationSettings] $AccelerationSettings
    [int] $Priority
    [string] $StatusUpdateInterval
    [VSJson] $SettingsJson
    [string] $Queue
    [MediaConvertJobTemplateHopDestination[]] $HopDestinations
    [VSJson] $Tags
    [string] $Name
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name Category -Value {
            $this.Properties['Category']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Category'] = 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 AccelerationSettings -Value {
            $this.Properties['AccelerationSettings']
        } -SecondValue {
            param([ValidateType(([MediaConvertJobTemplateAccelerationSettings], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['AccelerationSettings'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Priority -Value {
            $this.Properties['Priority']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Priority'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StatusUpdateInterval -Value {
            $this.Properties['StatusUpdateInterval']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['StatusUpdateInterval'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SettingsJson -Value {
            $this.Properties['SettingsJson']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['SettingsJson'] = [VSJson]::Transform($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Queue -Value {
            $this.Properties['Queue']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Queue'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name HopDestinations -Value {
            $this.Properties['HopDestinations']
        } -SecondValue {
            param([ValidateType(([MediaConvertJobTemplateHopDestination], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['HopDestinations'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value {
            $this.Properties['Tags']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['Tags'] = [VSJson]::Transform($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
        }
    }

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

Write-Verbose "Importing class 'MediaConvertPreset'"

class MediaConvertPreset : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMediaConvertPreset'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html'

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

    [string] $Type = 'AWS::MediaConvert::Preset'
    [string] $Category
    [string] $Description
    [VSJson] $SettingsJson
    [VSJson] $Tags
    [string] $Name
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name Category -Value {
            $this.Properties['Category']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Category'] = 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 SettingsJson -Value {
            $this.Properties['SettingsJson']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['SettingsJson'] = [VSJson]::Transform($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value {
            $this.Properties['Tags']
        } -SecondValue {
            param([ValidateType(([string], [VSJson], [VSYaml], [psobject], [IDictionary]))][object] $value)
            $this.Properties['Tags'] = [VSJson]::Transform($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
        }
    }

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