VaporShell.ResourceGroups.Classes.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
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 'ResourceGroupsGroupTagFilter'"

class ResourceGroupsGroupTagFilter : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSResourceGroupsGroupTagFilter'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-tagfilter.html'

    hidden [object] $_key
    hidden [object] $_values

    [string] $Key
    [string[]] $Values

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

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

Write-Verbose "Importing class 'ResourceGroupsGroupQuery'"

class ResourceGroupsGroupQuery : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSResourceGroupsGroupQuery'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-query.html'

    hidden [object] $_resourceTypeFilters
    hidden [object] $_stackIdentifier
    hidden [object] $_tagFilters

    [string[]] $ResourceTypeFilters
    [string] $StackIdentifier
    [ResourceGroupsGroupTagFilter[]] $TagFilters

    hidden [void] _addAccessors() {
        $this | Add-Member -Force -MemberType ScriptProperty -Name ResourceTypeFilters -Value {
            $this._resourceTypeFilters
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._resourceTypeFilters = @($value)
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name StackIdentifier -Value {
            $this._stackIdentifier
        } -SecondValue {
            param([ValidateType(([string], [int], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._stackIdentifier = if ($value -is [int]) {
                $value.ToString()
            }
            else {
                $value
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name TagFilters -Value {
            $this._tagFilters
        } -SecondValue {
            param([ValidateType(([ResourceGroupsGroupTagFilter], [IntrinsicFunction], [ConditionFunction]))] [object[]] $value)
            $this._tagFilters = $value
        }
    }

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

Write-Verbose "Importing class 'ResourceGroupsGroupResourceQuery'"

class ResourceGroupsGroupResourceQuery : VSResourceProperty {
    hidden [string] $_vsFunctionName = 'Add-VSResourceGroupsGroupResourceQuery'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resourcegroups-group-resourcequery.html'

    hidden [object] $_type
    hidden [object] $_query

    [string] $Type
    [ResourceGroupsGroupQuery] $Query

    hidden [void] _addAccessors() {
        $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
            }
        }
        $this | Add-Member -Force -MemberType ScriptProperty -Name Query -Value {
            $this._query
        } -SecondValue {
            param([ValidateType(([ResourceGroupsGroupQuery], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this._query = $value
        }
    }

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

Write-Verbose "Importing class 'ResourceGroupsGroup'"

class ResourceGroupsGroup : VSResource {
    hidden [string] $_vsFunctionName = 'New-VSResourceGroupsGroup'
    hidden [string] $_awsDocumentation = 'http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-resourcegroups-group.html'

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

    [string] $Type = 'AWS::ResourceGroups::Group'
    [string] $Name
    [string] $Description
    [ResourceGroupsGroupResourceQuery] $ResourceQuery
    [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 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 ResourceQuery -Value {
            $this.Properties['ResourceQuery']
        } -SecondValue {
            param([ValidateType(([ResourceGroupsGroupResourceQuery], [string], [IntrinsicFunction], [ConditionFunction]))] [object] $value)
            $this.Properties['ResourceQuery'] = $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
        }
    }

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