VaporShell.XRay.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 'XRayGroupInsightsConfiguration'"

class XRayGroupInsightsConfiguration : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSXRayGroupInsightsConfiguration'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-group-insightsconfiguration.html'

    hidden [object] $_insightsEnabled
    hidden [object] $_notificationsEnabled

    [bool] $InsightsEnabled
    [bool] $NotificationsEnabled

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name InsightsEnabled -Value {
            $this._insightsEnabled
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._insightsEnabled = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name NotificationsEnabled -Value {
            $this._notificationsEnabled
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._notificationsEnabled = $value
        }
    }

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

Write-Verbose "Importing class 'XRaySamplingRuleSamplingRuleUpdate'"

class XRaySamplingRuleSamplingRuleUpdate : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSXRaySamplingRuleSamplingRuleUpdate'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingruleupdate.html'

    hidden [object] $_attributes
    hidden [object] $_fixedRate
    hidden [object] $_host
    hidden [object] $_hTTPMethod
    hidden [object] $_priority
    hidden [object] $_reservoirSize
    hidden [object] $_resourceARN
    hidden [object] $_ruleARN
    hidden [object] $_ruleName
    hidden [object] $_serviceName
    hidden [object] $_serviceType
    hidden [object] $_uRLPath

    [string] $Attributes
    [double] $FixedRate
    [string] $Host
    [string] $HTTPMethod
    [int] $Priority
    [int] $ReservoirSize
    [string] $ResourceARN
    [string] $RuleARN
    [string] $RuleName
    [string] $ServiceName
    [string] $ServiceType
    [string] $URLPath

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name Attributes -Value {
            $this._attributes
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._attributes = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name FixedRate -Value {
            $this._fixedRate
        } -SecondValue {
            param([ValidateType(([double], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._fixedRate = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Host -Value {
            $this._host
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._host = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name HTTPMethod -Value {
            $this._hTTPMethod
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._hTTPMethod = if ($value -is [int]) {
                $value.ToString()
            }
            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 ReservoirSize -Value {
            $this._reservoirSize
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._reservoirSize = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceARN -Value {
            $this._resourceARN
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._resourceARN = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RuleARN -Value {
            $this._ruleARN
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._ruleARN = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RuleName -Value {
            $this._ruleName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._ruleName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ServiceName -Value {
            $this._serviceName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._serviceName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ServiceType -Value {
            $this._serviceType
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._serviceType = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name URLPath -Value {
            $this._uRLPath
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._uRLPath = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'XRaySamplingRuleSamplingRuleRecord'"

class XRaySamplingRuleSamplingRuleRecord : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSXRaySamplingRuleSamplingRuleRecord'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrulerecord.html'

    hidden [object] $_createdAt
    hidden [object] $_modifiedAt
    hidden [object] $_samplingRule

    [string] $CreatedAt
    [string] $ModifiedAt
    [XRaySamplingRuleSamplingRule] $SamplingRule

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

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

Write-Verbose "Importing class 'XRaySamplingRuleSamplingRule'"

class XRaySamplingRuleSamplingRule : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSXRaySamplingRuleSamplingRule'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrule.html'

    hidden [object] $_attributes
    hidden [object] $_fixedRate
    hidden [object] $_host
    hidden [object] $_hTTPMethod
    hidden [object] $_priority
    hidden [object] $_reservoirSize
    hidden [object] $_resourceARN
    hidden [object] $_ruleARN
    hidden [object] $_ruleName
    hidden [object] $_serviceName
    hidden [object] $_serviceType
    hidden [object] $_uRLPath
    hidden [object] $_version

    [string] $Attributes
    [double] $FixedRate
    [string] $Host
    [string] $HTTPMethod
    [int] $Priority
    [int] $ReservoirSize
    [string] $ResourceARN
    [string] $RuleARN
    [string] $RuleName
    [string] $ServiceName
    [string] $ServiceType
    [string] $URLPath
    [int] $Version

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name Attributes -Value {
            $this._attributes
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._attributes = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name FixedRate -Value {
            $this._fixedRate
        } -SecondValue {
            param([ValidateType(([double], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._fixedRate = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Host -Value {
            $this._host
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._host = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name HTTPMethod -Value {
            $this._hTTPMethod
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._hTTPMethod = if ($value -is [int]) {
                $value.ToString()
            }
            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 ReservoirSize -Value {
            $this._reservoirSize
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._reservoirSize = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceARN -Value {
            $this._resourceARN
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._resourceARN = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RuleARN -Value {
            $this._ruleARN
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._ruleARN = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name RuleName -Value {
            $this._ruleName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._ruleName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ServiceName -Value {
            $this._serviceName
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._serviceName = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ServiceType -Value {
            $this._serviceType
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._serviceType = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name URLPath -Value {
            $this._uRLPath
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._uRLPath = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Version -Value {
            $this._version
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._version = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'XRayGroup'"

class XRayGroup : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSXRayGroup'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-group.html'

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

    [string] $Type = 'AWS::XRay::Group'
    [string] $FilterExpression
    [string] $GroupName
    [XRayGroupInsightsConfiguration] $InsightsConfiguration
    [VSJson[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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

Write-Verbose "Importing class 'XRaySamplingRule'"

class XRaySamplingRule : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSXRaySamplingRule'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-samplingrule.html'

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

    [string] $Type = 'AWS::XRay::SamplingRule'
    [XRaySamplingRuleSamplingRule] $SamplingRule
    [XRaySamplingRuleSamplingRuleRecord] $SamplingRuleRecord
    [XRaySamplingRuleSamplingRuleUpdate] $SamplingRuleUpdate
    [string] $RuleName
    [VSJson[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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