VaporShell.RUM.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 'RUMAppMonitorAppMonitorConfiguration'"

class RUMAppMonitorAppMonitorConfiguration : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSRUMAppMonitorAppMonitorConfiguration'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rum-appmonitor-appmonitorconfiguration.html'

    hidden [object] $_identityPoolId
    hidden [object] $_excludedPages
    hidden [object] $_includedPages
    hidden [object] $_favoritePages
    hidden [object] $_sessionSampleRate
    hidden [object] $_guestRoleArn
    hidden [object] $_allowCookies
    hidden [object] $_telemetries
    hidden [object] $_enableXRay

    [string] $IdentityPoolId
    [string[]] $ExcludedPages
    [string[]] $IncludedPages
    [string[]] $FavoritePages
    [double] $SessionSampleRate
    [string] $GuestRoleArn
    [bool] $AllowCookies
    [string[]] $Telemetries
    [bool] $EnableXRay

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name IdentityPoolId -Value {
            $this._identityPoolId
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._identityPoolId = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ExcludedPages -Value {
            $this._excludedPages
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._excludedPages = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name IncludedPages -Value {
            $this._includedPages
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._includedPages = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name FavoritePages -Value {
            $this._favoritePages
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._favoritePages = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name SessionSampleRate -Value {
            $this._sessionSampleRate
        } -SecondValue {
            param([ValidateType(([double], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._sessionSampleRate = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name GuestRoleArn -Value {
            $this._guestRoleArn
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._guestRoleArn = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name AllowCookies -Value {
            $this._allowCookies
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._allowCookies = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Telemetries -Value {
            $this._telemetries
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._telemetries = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name EnableXRay -Value {
            $this._enableXRay
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._enableXRay = $value
        }
    }

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

Write-Verbose "Importing class 'RUMAppMonitor'"

class RUMAppMonitor : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSRUMAppMonitor'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html'

    hidden [object] $_condition

    [string] $Type = 'AWS::RUM::AppMonitor'
    [string] $Name
    [string] $Domain
    [bool] $CwLogEnabled
    [VSTag[]] $Tags
    [RUMAppMonitorAppMonitorConfiguration] $AppMonitorConfiguration
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $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 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 CwLogEnabled -Value {
            $this.Properties['CwLogEnabled']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['CwLogEnabled'] = $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 AppMonitorConfiguration -Value {
            $this.Properties['AppMonitorConfiguration']
        } -SecondValue {
            param([ValidateType(([RUMAppMonitorAppMonitorConfiguration], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['AppMonitorConfiguration'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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