VaporShell.CustomerProfiles.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 'CustomerProfilesObjectTypeKeyMap'"

class CustomerProfilesObjectTypeKeyMap : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCustomerProfilesObjectTypeKeyMap'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-keymap.html'

    hidden [object] $_name
    hidden [object] $_objectTypeKeyList

    [string] $Name
    [CustomerProfilesObjectTypeObjectTypeKey[]] $ObjectTypeKeyList

    hidden [void] _addAccessors() {
        $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
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ObjectTypeKeyList -Value {
            $this._objectTypeKeyList
        } -SecondValue {
            param([ValidateType(([CustomerProfilesObjectTypeObjectTypeKey], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._objectTypeKeyList = $value
        }
    }

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

Write-Verbose "Importing class 'CustomerProfilesObjectTypeFieldMap'"

class CustomerProfilesObjectTypeFieldMap : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCustomerProfilesObjectTypeFieldMap'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-fieldmap.html'

    hidden [object] $_name
    hidden [object] $_objectTypeField

    [string] $Name
    [CustomerProfilesObjectTypeObjectTypeField] $ObjectTypeField

    hidden [void] _addAccessors() {
        $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
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ObjectTypeField -Value {
            $this._objectTypeField
        } -SecondValue {
            param([ValidateType(([CustomerProfilesObjectTypeObjectTypeField], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._objectTypeField = $value
        }
    }

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

Write-Verbose "Importing class 'CustomerProfilesObjectTypeObjectTypeField'"

class CustomerProfilesObjectTypeObjectTypeField : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCustomerProfilesObjectTypeObjectTypeField'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-objecttypefield.html'

    hidden [object] $_source
    hidden [object] $_target
    hidden [object] $_contentType

    [string] $Source
    [string] $Target
    [string] $ContentType

    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 Target -Value {
            $this._target
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._target = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ContentType -Value {
            $this._contentType
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._contentType = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'CustomerProfilesObjectTypeObjectTypeKey'"

class CustomerProfilesObjectTypeObjectTypeKey : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCustomerProfilesObjectTypeObjectTypeKey'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-objecttype-objecttypekey.html'

    hidden [object] $_fieldNames
    hidden [object] $_standardIdentifiers

    [string[]] $FieldNames
    [string[]] $StandardIdentifiers

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name FieldNames -Value {
            $this._fieldNames
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._fieldNames = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StandardIdentifiers -Value {
            $this._standardIdentifiers
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._standardIdentifiers = @($value)
        }
    }

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

Write-Verbose "Importing class 'CustomerProfilesDomain'"

class CustomerProfilesDomain : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCustomerProfilesDomain'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-domain.html'

    hidden [string[]] $_attributes = @('CreatedAt','LastUpdatedAt')
    hidden [object] $_condition

    [string] $Type = 'AWS::CustomerProfiles::Domain'
    [string] $DomainName
    [string] $DeadLetterQueueUrl
    [string] $DefaultEncryptionKey
    [int] $DefaultExpirationDays
    [VSTag[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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

Write-Verbose "Importing class 'CustomerProfilesIntegration'"

class CustomerProfilesIntegration : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCustomerProfilesIntegration'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-integration.html'

    hidden [string[]] $_attributes = @('CreatedAt','LastUpdatedAt')
    hidden [object] $_condition

    [string] $Type = 'AWS::CustomerProfiles::Integration'
    [string] $DomainName
    [string] $Uri
    [string] $ObjectTypeName
    [VSTag[]] $Tags
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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

Write-Verbose "Importing class 'CustomerProfilesObjectType'"

class CustomerProfilesObjectType : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCustomerProfilesObjectType'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-customerprofiles-objecttype.html'

    hidden [string[]] $_attributes = @('CreatedAt','LastUpdatedAt')
    hidden [object] $_condition

    [string] $Type = 'AWS::CustomerProfiles::ObjectType'
    [string] $DomainName
    [string] $ObjectTypeName
    [bool] $AllowProfileCreation
    [string] $Description
    [string] $EncryptionKey
    [int] $ExpirationDays
    [CustomerProfilesObjectTypeFieldMap[]] $Fields
    [CustomerProfilesObjectTypeKeyMap[]] $Keys
    [VSTag[]] $Tags
    [string] $TemplateId
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name DomainName -Value {
            $this.Properties['DomainName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['DomainName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ObjectTypeName -Value {
            $this.Properties['ObjectTypeName']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ObjectTypeName'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name AllowProfileCreation -Value {
            $this.Properties['AllowProfileCreation']
        } -SecondValue {
            param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['AllowProfileCreation'] = $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 EncryptionKey -Value {
            $this.Properties['EncryptionKey']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['EncryptionKey'] = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ExpirationDays -Value {
            $this.Properties['ExpirationDays']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ExpirationDays'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Fields -Value {
            $this.Properties['Fields']
        } -SecondValue {
            param([ValidateType(([CustomerProfilesObjectTypeFieldMap], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['Fields'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Keys -Value {
            $this.Properties['Keys']
        } -SecondValue {
            param([ValidateType(([CustomerProfilesObjectTypeKeyMap], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this.Properties['Keys'] = $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 TemplateId -Value {
            $this.Properties['TemplateId']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['TemplateId'] = 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
        }
    }

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