VaporShell.Macie.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 'MacieFindingsFilterFindingsFilterListItem'"

class MacieFindingsFilterFindingsFilterListItem : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSMacieFindingsFilterFindingsFilterListItem'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingsfilterlistitem.html'

    hidden [object] $_id
    hidden [object] $_name

    [string] $Id
    [string] $Name

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

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

Write-Verbose "Importing class 'MacieFindingsFilterFindingCriteria'"

class MacieFindingsFilterFindingCriteria : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSMacieFindingsFilterFindingCriteria'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingcriteria.html'

    hidden [object] $_criterion

    [MacieFindingsFilterCriterion] $Criterion

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name Criterion -Value {
            $this._criterion
        } -SecondValue {
            param([ValidateType(([MacieFindingsFilterCriterion], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._criterion = $value
        }
    }

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

Write-Verbose "Importing class 'MacieFindingsFilterCriterion'"

class MacieFindingsFilterCriterion : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSMacieFindingsFilterCriterion'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterion.html'



    hidden [void] _addAccessors() {
    }

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

Write-Verbose "Importing class 'MacieSession'"

class MacieSession : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMacieSession'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-session.html'

    hidden [string[]] $_attributes = @('AwsAccountId','ServiceRole')
    hidden [object] $_condition

    [string] $Type = 'AWS::Macie::Session'
    [string] $Status
    [string] $FindingPublishingFrequency
    [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 FindingPublishingFrequency -Value {
            $this.Properties['FindingPublishingFrequency']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['FindingPublishingFrequency'] = 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
        }
    }

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

Write-Verbose "Importing class 'MacieFindingsFilter'"

class MacieFindingsFilter : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMacieFindingsFilter'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-findingsfilter.html'

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

    [string] $Type = 'AWS::Macie::FindingsFilter'
    [string] $Name
    [string] $Description
    [MacieFindingsFilterFindingCriteria] $FindingCriteria
    [string] $Action
    [int] $Position
    [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 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 FindingCriteria -Value {
            $this.Properties['FindingCriteria']
        } -SecondValue {
            param([ValidateType(([MacieFindingsFilterFindingCriteria], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['FindingCriteria'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Action -Value {
            $this.Properties['Action']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Action'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Position -Value {
            $this.Properties['Position']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Position'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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

Write-Verbose "Importing class 'MacieCustomDataIdentifier'"

class MacieCustomDataIdentifier : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSMacieCustomDataIdentifier'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-macie-customdataidentifier.html'

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

    [string] $Type = 'AWS::Macie::CustomDataIdentifier'
    [string] $Name
    [string] $Description
    [string] $Regex
    [int] $MaximumMatchDistance
    [string[]] $Keywords
    [string[]] $IgnoreWords
    [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 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 Regex -Value {
            $this.Properties['Regex']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['Regex'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name MaximumMatchDistance -Value {
            $this.Properties['MaximumMatchDistance']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['MaximumMatchDistance'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Keywords -Value {
            $this.Properties['Keywords']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['Keywords'] = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name IgnoreWords -Value {
            $this.Properties['IgnoreWords']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['IgnoreWords'] = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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