VaporShell.CertificateManager.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 'CertificateManagerAccountExpiryEventsConfiguration'"

class CertificateManagerAccountExpiryEventsConfiguration : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCertificateManagerAccountExpiryEventsConfiguration'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-account-expiryeventsconfiguration.html'

    hidden [object] $_daysBeforeExpiry

    [int] $DaysBeforeExpiry

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name DaysBeforeExpiry -Value {
            $this._daysBeforeExpiry
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._daysBeforeExpiry = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
    }

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

Write-Verbose "Importing class 'CertificateManagerCertificateDomainValidationOption'"

class CertificateManagerCertificateDomainValidationOption : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSCertificateManagerCertificateDomainValidationOption'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-certificatemanager-certificate-domainvalidationoption.html'

    hidden [object] $_domainName
    hidden [object] $_hostedZoneId
    hidden [object] $_validationDomain

    [string] $DomainName
    [string] $HostedZoneId
    [string] $ValidationDomain

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

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

Write-Verbose "Importing class 'CertificateManagerAccount'"

class CertificateManagerAccount : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCertificateManagerAccount'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-account.html'

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

    [string] $Type = 'AWS::CertificateManager::Account'
    [CertificateManagerAccountExpiryEventsConfiguration] $ExpiryEventsConfiguration
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

    hidden [void] _addAccessors() {
        $this._addBaseAccessors()
        $this | Add-Member -Force -MemberType ScriptProperty -Name ExpiryEventsConfiguration -Value {
            $this.Properties['ExpiryEventsConfiguration']
        } -SecondValue {
            param([ValidateType(([CertificateManagerAccountExpiryEventsConfiguration], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ExpiryEventsConfiguration'] = $value
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value {
            $this._condition
        } -SecondValue {
            param(
                [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object]
                $value
            )
            $this._condition = $value
        }
    }

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

Write-Verbose "Importing class 'CertificateManagerCertificate'"

class CertificateManagerCertificate : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSCertificateManagerCertificate'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html'

    hidden [object] $_condition

    [string] $Type = 'AWS::CertificateManager::Certificate'
    [string] $CertificateAuthorityArn
    [string] $CertificateTransparencyLoggingPreference
    [string] $DomainName
    [CertificateManagerCertificateDomainValidationOption[]] $DomainValidationOptions
    [string[]] $SubjectAlternativeNames
    [VSTag[]] $Tags
    [string] $ValidationMethod
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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