VaporShell.CodeGuruProfiler.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 'CodeGuruProfilerProfilingGroupChannel'"

class CodeGuruProfilerProfilingGroupChannel : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCodeGuruProfilerProfilingGroupChannel'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html'

    hidden [object] $_channelId
    hidden [object] $_channelUri

    [string] $channelId
    [string] $channelUri

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

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

Write-Verbose "Importing class 'CodeGuruProfilerProfilingGroup'"

class CodeGuruProfilerProfilingGroup : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCodeGuruProfilerProfilingGroup'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html'

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

    [string] $Type = 'AWS::CodeGuruProfiler::ProfilingGroup'
    [string] $ProfilingGroupName
    [string] $ComputePlatform
    [VSJson] $AgentPermissions
    [CodeGuruProfilerProfilingGroupChannel[]] $AnomalyDetectionNotificationConfiguration
    [VSTag[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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