VaporShell.Inspector.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 'InspectorResourceGroup'" class InspectorResourceGroup : VSResource { hidden [string] $_vsFunctionName = 'New-VSInspectorResourceGroup' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::Inspector::ResourceGroup' [VSTag[]] $ResourceGroupTags [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceGroupTags -Value { $this.Properties['ResourceGroupTags'] } -SecondValue { param([TransformTag()] [ValidateType(([IDictionary], [psobject], [VSTag]))] [object] $value) $this.Properties['ResourceGroupTags'] = [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 } } InspectorResourceGroup() : base() {} InspectorResourceGroup([IDictionary] $props) : base($props) {} InspectorResourceGroup([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorAssessmentTemplate'" class InspectorAssessmentTemplate : VSResource { hidden [string] $_vsFunctionName = 'New-VSInspectorAssessmentTemplate' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::Inspector::AssessmentTemplate' [string] $AssessmentTargetArn [int] $DurationInSeconds [string] $AssessmentTemplateName [string[]] $RulesPackageArns [VSTag[]] $UserAttributesForFindings [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name AssessmentTargetArn -Value { $this.Properties['AssessmentTargetArn'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['AssessmentTargetArn'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name DurationInSeconds -Value { $this.Properties['DurationInSeconds'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['DurationInSeconds'] = if ($cast = $value -as [int]) { $cast } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name AssessmentTemplateName -Value { $this.Properties['AssessmentTemplateName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['AssessmentTemplateName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name RulesPackageArns -Value { $this.Properties['RulesPackageArns'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value) $this.Properties['RulesPackageArns'] = @($value) } $this | Add-Member -Force -MemberType ScriptProperty -Name UserAttributesForFindings -Value { $this.Properties['UserAttributesForFindings'] } -SecondValue { param([TransformTag()] [ValidateType(([IDictionary], [psobject], [VSTag]))] [object] $value) $this.Properties['UserAttributesForFindings'] = [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 } } InspectorAssessmentTemplate() : base() {} InspectorAssessmentTemplate([IDictionary] $props) : base($props) {} InspectorAssessmentTemplate([psobject] $props) : base($props) {} } Write-Verbose "Importing class 'InspectorAssessmentTarget'" class InspectorAssessmentTarget : VSResource { hidden [string] $_vsFunctionName = 'New-VSInspectorAssessmentTarget' hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html' hidden [string[]] $_attributes = @('Arn') hidden [object] $_condition [string] $Type = 'AWS::Inspector::AssessmentTarget' [string] $AssessmentTargetName [string] $ResourceGroupArn [VSJson] $Metadata [UpdatePolicy] $UpdatePolicy [string] $Condition hidden [void] _addAccessors() { $this._addBaseAccessors() $this | Add-Member -Force -MemberType ScriptProperty -Name AssessmentTargetName -Value { $this.Properties['AssessmentTargetName'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['AssessmentTargetName'] = if ($value -is [int]) { $value.ToString() } else { $value } } $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceGroupArn -Value { $this.Properties['ResourceGroupArn'] } -SecondValue { param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value) $this.Properties['ResourceGroupArn'] = 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 } } InspectorAssessmentTarget() : base() {} InspectorAssessmentTarget([IDictionary] $props) : base($props) {} InspectorAssessmentTarget([psobject] $props) : base($props) {} } |