VaporShell.ResilienceHub.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 'ResilienceHubAppPhysicalResourceId'" class ResilienceHubAppPhysicalResourceId : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSResilienceHubAppPhysicalResourceId' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-physicalresourceid.html' hidden [object] $_awsAccountId hidden [object] $_awsRegion hidden [object] $_identifier hidden [object] $_type [string] $AwsAccountId [string] $AwsRegion [string] $Identifier [string] $Type hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name AwsAccountId -Value { $this._awsAccountId } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._awsAccountId = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name AwsRegion -Value { $this._awsRegion } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._awsRegion = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Identifier -Value { $this._identifier } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._identifier = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Type -Value { $this._type } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._type = if ($value -is [int]) { $value.ToString() } else { $value } } } ResilienceHubAppPhysicalResourceId() : base() {} ResilienceHubAppPhysicalResourceId([IDictionary] $props) : base($props) {} ResilienceHubAppPhysicalResourceId([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ResilienceHubAppResourceMapping'" class ResilienceHubAppResourceMapping : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSResilienceHubAppResourceMapping' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-app-resourcemapping.html' hidden [object] $_logicalStackName hidden [object] $_mappingType hidden [object] $_resourceName hidden [object] $_physicalResourceId [string] $LogicalStackName [string] $MappingType [string] $ResourceName [ResilienceHubAppPhysicalResourceId] $PhysicalResourceId hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name LogicalStackName -Value { $this._logicalStackName } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._logicalStackName = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name MappingType -Value { $this._mappingType } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._mappingType = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceName -Value { $this._resourceName } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._resourceName = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name PhysicalResourceId -Value { $this._physicalResourceId } -SecondValue { param([ValidateType(([ResilienceHubAppPhysicalResourceId], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._physicalResourceId = $value } } ResilienceHubAppResourceMapping() : base() {} ResilienceHubAppResourceMapping([IDictionary] $props) : base($props) {} ResilienceHubAppResourceMapping([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ResilienceHubResiliencyPolicyFailurePolicy'" class ResilienceHubResiliencyPolicyFailurePolicy : VSResourceProperty { hidden [string] $_vsFunctionName = 'Add-VSResilienceHubResiliencyPolicyFailurePolicy' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resiliencehub-resiliencypolicy-failurepolicy.html' hidden [object] $_rtoInSecs hidden [object] $_rpoInSecs [int] $RtoInSecs [int] $RpoInSecs hidden [void] _addAccessors() { $this | Add-Member -Force -MemberType ScriptProperty -Name RtoInSecs -Value { $this._rtoInSecs } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._rtoInSecs = if ($cast = $value -as [int]) { $cast } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name RpoInSecs -Value { $this._rpoInSecs } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this._rpoInSecs = if ($cast = $value -as [int]) { $cast } else { $value } } } ResilienceHubResiliencyPolicyFailurePolicy() : base() {} ResilienceHubResiliencyPolicyFailurePolicy([IDictionary] $props) : base($props) {} ResilienceHubResiliencyPolicyFailurePolicy([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ResilienceHubApp'" class ResilienceHubApp : VSResource { hidden [string] $_vsFunctionName = 'New-VSResilienceHubApp' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-app.html' hidden [string[]] $_attributes = @('AppArn') hidden [object] $_condition [string] $Type = 'AWS::ResilienceHub::App' [string] $Name [string] $Description [string] $ResiliencyPolicyArn [string] $Tags [string] $AppTemplateBody [ResilienceHubAppResourceMapping[]] $ResourceMappings [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 ResiliencyPolicyArn -Value { $this.Properties['ResiliencyPolicyArn'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['ResiliencyPolicyArn'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value { $this.Properties['Tags'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Tags'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name AppTemplateBody -Value { $this.Properties['AppTemplateBody'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['AppTemplateBody'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceMappings -Value { $this.Properties['ResourceMappings'] } -SecondValue { param([ValidateType(([ResilienceHubAppResourceMapping], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['ResourceMappings'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } ResilienceHubApp() : base() {} ResilienceHubApp([IDictionary] $props) : base($props) {} ResilienceHubApp([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'ResilienceHubResiliencyPolicy'" class ResilienceHubResiliencyPolicy : VSResource { hidden [string] $_vsFunctionName = 'New-VSResilienceHubResiliencyPolicy' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resiliencehub-resiliencypolicy.html' hidden [string[]] $_attributes = @('PolicyArn') hidden [object] $_condition [string] $Type = 'AWS::ResilienceHub::ResiliencyPolicy' [string] $PolicyName [string] $PolicyDescription [string] $DataLocationConstraint [string] $Tier [ResilienceHubResiliencyPolicyFailurePolicy] $Policy [string] $Tags [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name PolicyName -Value { $this.Properties['PolicyName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['PolicyName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name PolicyDescription -Value { $this.Properties['PolicyDescription'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['PolicyDescription'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name DataLocationConstraint -Value { $this.Properties['DataLocationConstraint'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DataLocationConstraint'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Tier -Value { $this.Properties['Tier'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Tier'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name Policy -Value { $this.Properties['Policy'] } -SecondValue { param([ValidateType(([ResilienceHubResiliencyPolicyFailurePolicy], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Policy'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Tags -Value { $this.Properties['Tags'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['Tags'] = $value } $this | Add-Member -Force -MemberType ScriptProperty -Name Condition -Value { $this._condition } -SecondValue { param( [ValidateType(([string], [IntrinsicFunction], [ConditionFunction]))] [object] $value ) $this._condition = $value } } ResilienceHubResiliencyPolicy() : base() {} ResilienceHubResiliencyPolicy([IDictionary] $props) : base($props) {} ResilienceHubResiliencyPolicy([psobject] $props) : base($props) {} } |