VaporShell.Kinesis.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 'KinesisStreamStreamEncryption'"

class KinesisStreamStreamEncryption : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSKinesisStreamStreamEncryption'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html'

    hidden [object] $_encryptionType
    hidden [object] $_keyId

    [string] $EncryptionType
    [string] $KeyId

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

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

Write-Verbose "Importing class 'KinesisStream'"

class KinesisStream : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSKinesisStream'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html'

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

    [string] $Type = 'AWS::Kinesis::Stream'
    [string] $Name
    [int] $RetentionPeriodHours
    [int] $ShardCount
    [KinesisStreamStreamEncryption] $StreamEncryption
    [VSTag[]] $Tags
    [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 RetentionPeriodHours -Value {
            $this.Properties['RetentionPeriodHours']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['RetentionPeriodHours'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name ShardCount -Value {
            $this.Properties['ShardCount']
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ShardCount'] = if ($cast = $value -as [int]) {
                $cast
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StreamEncryption -Value {
            $this.Properties['StreamEncryption']
        } -SecondValue {
            param([ValidateType(([KinesisStreamStreamEncryption], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['StreamEncryption'] = $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
        }
    }

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

Write-Verbose "Importing class 'KinesisStreamConsumer'"

class KinesisStreamConsumer : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSKinesisStreamConsumer'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-streamconsumer.html'

    hidden [string[]] $_attributes = @('ConsumerCreationTimestamp','ConsumerName','ConsumerARN','ConsumerStatus','StreamARN')
    hidden [object] $_condition

    [string] $Type = 'AWS::Kinesis::StreamConsumer'
    [string] $ConsumerName
    [string] $StreamARN
    [VSJson] $Metadata
    [UpdatePolicy] $UpdatePolicy
    [string] $Condition

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

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