VaporShell.OpsWorksCM.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 'OpsWorksCMServerEngineAttribute'" class OpsWorksCMServerEngineAttribute : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSOpsWorksCMServerEngineAttribute' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworkscm-server-engineattribute.html' hidden [object] $_value hidden [object] $_name [string] $Value [string] $Name hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name Value -Value { $this._value } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._value = 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 } } } OpsWorksCMServerEngineAttribute() : base() {} OpsWorksCMServerEngineAttribute([IDictionary] $props) : base($props) {} OpsWorksCMServerEngineAttribute([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'OpsWorksCMServer'" class OpsWorksCMServer : VSResource { hidden [string] $_vsFunctionName = 'New-VSOpsWorksCMServer' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html' hidden [string[]] $_attributes = @('Endpoint','Id','Arn') hidden [object] $_condition [string] $Type = 'AWS::OpsWorksCM::Server' [string] $KeyPair [string] $EngineVersion [string] $ServiceRoleArn [bool] $DisableAutomatedBackup [string] $BackupId [string] $EngineModel [string] $PreferredMaintenanceWindow [bool] $AssociatePublicIpAddress [string] $InstanceProfileArn [string] $CustomCertificate [string] $PreferredBackupWindow [string[]] $SecurityGroupIds [string[]] $SubnetIds [string] $CustomDomain [string] $CustomPrivateKey [string] $ServerName [OpsWorksCMServerEngineAttribute[]] $EngineAttributes [int] $BackupRetentionCount [string] $InstanceType [VSTag[]] $Tags [string] $Engine [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name KeyPair -Value { $this.Properties['KeyPair'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['KeyPair'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name EngineVersion -Value { $this.Properties['EngineVersion'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['EngineVersion'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ServiceRoleArn -Value { $this.Properties['ServiceRoleArn'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['ServiceRoleArn'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name DisableAutomatedBackup -Value { $this.Properties['DisableAutomatedBackup'] } -SecondValue { param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DisableAutomatedBackup'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name BackupId -Value { $this.Properties['BackupId'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['BackupId'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name EngineModel -Value { $this.Properties['EngineModel'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['EngineModel'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name PreferredMaintenanceWindow -Value { $this.Properties['PreferredMaintenanceWindow'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['PreferredMaintenanceWindow'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name AssociatePublicIpAddress -Value { $this.Properties['AssociatePublicIpAddress'] } -SecondValue { param([ValidateType(([bool], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['AssociatePublicIpAddress'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name InstanceProfileArn -Value { $this.Properties['InstanceProfileArn'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['InstanceProfileArn'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name CustomCertificate -Value { $this.Properties['CustomCertificate'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['CustomCertificate'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name PreferredBackupWindow -Value { $this.Properties['PreferredBackupWindow'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['PreferredBackupWindow'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name SecurityGroupIds -Value { $this.Properties['SecurityGroupIds'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['SecurityGroupIds'] = @($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name SubnetIds -Value { $this.Properties['SubnetIds'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['SubnetIds'] = @($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name CustomDomain -Value { $this.Properties['CustomDomain'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['CustomDomain'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name CustomPrivateKey -Value { $this.Properties['CustomPrivateKey'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['CustomPrivateKey'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ServerName -Value { $this.Properties['ServerName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['ServerName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name EngineAttributes -Value { $this.Properties['EngineAttributes'] } -SecondValue { param([ValidateType(([OpsWorksCMServerEngineAttribute], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['EngineAttributes'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name BackupRetentionCount -Value { $this.Properties['BackupRetentionCount'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['BackupRetentionCount'] = if ($cast = $value -as [int]) { $cast } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name InstanceType -Value { $this.Properties['InstanceType'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['InstanceType'] = 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 Engine -Value { $this.Properties['Engine'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Engine'] = 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 } } OpsWorksCMServer() : base() {} OpsWorksCMServer([IDictionary] $props) : base($props) {} OpsWorksCMServer([psobject] $props) : base($props) {} } |