VaporShell.FIS.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 'FISExperimentTemplateExperimentTemplateStopCondition'"

class FISExperimentTemplateExperimentTemplateStopCondition : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSFISExperimentTemplateExperimentTemplateStopCondition'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplatestopcondition.html'

    hidden [object] $_source
    hidden [object] $_value

    [string] $Source
    [string] $Value

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

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

Write-Verbose "Importing class 'FISExperimentTemplateExperimentTemplateTarget'"

class FISExperimentTemplateExperimentTemplateTarget : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSFISExperimentTemplateExperimentTemplateTarget'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplatetarget.html'

    hidden [object] $_resourceType
    hidden [object] $_resourceArns
    hidden [object] $_resourceTags
    hidden [object] $_filters
    hidden [object] $_selectionMode

    [string] $ResourceType
    [string[]] $ResourceArns
    [string] $ResourceTags
    [FISExperimentTemplateExperimentTemplateTargetFilter[]] $Filters
    [string] $SelectionMode

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceType -Value {
            $this._resourceType
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._resourceType = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceArns -Value {
            $this._resourceArns
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._resourceArns = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceTags -Value {
            $this._resourceTags
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._resourceTags = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Filters -Value {
            $this._filters
        } -SecondValue {
            param([ValidateType(([FISExperimentTemplateExperimentTemplateTargetFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._filters = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SelectionMode -Value {
            $this._selectionMode
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._selectionMode = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'FISExperimentTemplateExperimentTemplateAction'"

class FISExperimentTemplateExperimentTemplateAction : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSFISExperimentTemplateExperimentTemplateAction'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplateaction.html'

    hidden [object] $_actionId
    hidden [object] $_description
    hidden [object] $_parameters
    hidden [object] $_targets
    hidden [object] $_startAfter

    [string] $ActionId
    [string] $Description
    [string] $Parameters
    [string] $Targets
    [string[]] $StartAfter

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ActionId -Value {
            $this._actionId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._actionId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Description -Value {
            $this._description
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._description = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Parameters -Value {
            $this._parameters
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._parameters = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Targets -Value {
            $this._targets
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._targets = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StartAfter -Value {
            $this._startAfter
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._startAfter = @($value)
        }
    }

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

Write-Verbose "Importing class 'FISExperimentTemplateExperimentTemplateTargetFilter'"

class FISExperimentTemplateExperimentTemplateTargetFilter : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSFISExperimentTemplateExperimentTemplateTargetFilter'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-fis-experimenttemplate-experimenttemplatetargetfilter.html'

    hidden [object] $_path
    hidden [object] $_values

    [string] $Path
    [string[]] $Values

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

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

Write-Verbose "Importing class 'FISExperimentTemplate'"

class FISExperimentTemplate : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSFISExperimentTemplate'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fis-experimenttemplate.html'

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

    [string] $Type = 'AWS::FIS::ExperimentTemplate'
    [string] $Description
    [FISExperimentTemplateExperimentTemplateTarget] $Targets
    [FISExperimentTemplateExperimentTemplateAction] $Actions
    [FISExperimentTemplateExperimentTemplateStopCondition[]] $StopConditions
    [string] $RoleArn
    [string] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 Targets -Value {
            $this.Properties['Targets']
        } -SecondValue {
            param([ValidateType(([FISExperimentTemplateExperimentTemplateTarget], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Targets'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Actions -Value {
            $this.Properties['Actions']
        } -SecondValue {
            param([ValidateType(([FISExperimentTemplateExperimentTemplateAction], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Actions'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StopConditions -Value {
            $this.Properties['StopConditions']
        } -SecondValue {
            param([ValidateType(([FISExperimentTemplateExperimentTemplateStopCondition], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['StopConditions'] = $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 Tags -Value {
            $this.Properties['Tags']
        } -SecondValue {
            param([ValidateType(([string], [int], [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
        }
    }

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