Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit 2a989e8

Browse files
authored
Merge pull request #4 from ITV/stuart
FEATURE GCP-152 Rebuilds vaporshell to get latest VPN code
2 parents 1bf30d4 + 139c0ba commit 2a989e8

File tree

1,140 files changed

+74440
-2431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,140 files changed

+74440
-2431
lines changed

VaporShell/Public/Resource Property Types/Add-VSAPSScraperAmpConfiguration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Add-VSAPSScraperAmpConfiguration {
1111
1212
.PARAMETER WorkspaceArn
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-ampconfiguration.html#cfn-aps-scraper-ampconfiguration-workspacearn
14-
UpdateType: Immutable
14+
UpdateType: Mutable
1515
PrimitiveType: String
1616
1717
.FUNCTIONALITY

VaporShell/Public/Resource Property Types/Add-VSAPSScraperDestination.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Add-VSAPSScraperDestination {
1111
1212
.PARAMETER AmpConfiguration
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-destination.html#cfn-aps-scraper-destination-ampconfiguration
14-
UpdateType: Immutable
14+
UpdateType: Mutable
1515
Type: AmpConfiguration
1616
1717
.FUNCTIONALITY

VaporShell/Public/Resource Property Types/Add-VSAPSScraperScrapeConfiguration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Add-VSAPSScraperScrapeConfiguration {
1111
1212
.PARAMETER ConfigurationBlob
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-scraper-scrapeconfiguration.html#cfn-aps-scraper-scrapeconfiguration-configurationblob
14-
UpdateType: Immutable
14+
UpdateType: Mutable
1515
PrimitiveType: String
1616
1717
.FUNCTIONALITY
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
function Add-VSAccessAnalyzerAnalyzerAnalysisRule {
2+
<#
3+
.SYNOPSIS
4+
Adds an AWS::AccessAnalyzer::Analyzer.AnalysisRule resource property to the template.
5+
6+
.DESCRIPTION
7+
Adds an AWS::AccessAnalyzer::Analyzer.AnalysisRule resource property to the template.
8+
9+
.LINK
10+
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrule.html
11+
12+
.PARAMETER Exclusions
13+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrule.html#cfn-accessanalyzer-analyzer-analysisrule-exclusions
14+
UpdateType: Conditional
15+
Type: List
16+
ItemType: AnalysisRuleCriteria
17+
DuplicatesAllowed: True
18+
19+
.FUNCTIONALITY
20+
Vaporshell
21+
#>
22+
23+
[OutputType('Vaporshell.Resource.AccessAnalyzer.Analyzer.AnalysisRule')]
24+
[cmdletbinding()]
25+
26+
Param
27+
(
28+
[Parameter(Mandatory = $false)]
29+
[ValidateScript( {
30+
$allowedTypes = "Vaporshell.Resource.AccessAnalyzer.Analyzer.AnalysisRuleCriteria"
31+
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
32+
$true
33+
}
34+
else {
35+
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
36+
}
37+
})]
38+
$Exclusions
39+
40+
)
41+
42+
Begin {
43+
$obj = [PSCustomObject]@{}
44+
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
45+
}
46+
47+
Process {
48+
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
49+
switch ($key) {
50+
Default {
51+
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
52+
}
53+
}
54+
}
55+
}
56+
57+
End {
58+
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.AccessAnalyzer.Analyzer.AnalysisRule'
59+
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
60+
}
61+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
function Add-VSAccessAnalyzerAnalyzerAnalysisRuleCriteria {
2+
<#
3+
.SYNOPSIS
4+
Adds an AWS::AccessAnalyzer::Analyzer.AnalysisRuleCriteria resource property to the template.
5+
6+
.DESCRIPTION
7+
Adds an AWS::AccessAnalyzer::Analyzer.AnalysisRuleCriteria resource property to the template.
8+
9+
.LINK
10+
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html
11+
12+
.PARAMETER AccountIds
13+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html#cfn-accessanalyzer-analyzer-analysisrulecriteria-accountids
14+
UpdateType: Conditional
15+
Type: List
16+
PrimitiveItemType: String
17+
DuplicatesAllowed: True
18+
19+
.PARAMETER ResourceTags
20+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analysisrulecriteria.html#cfn-accessanalyzer-analyzer-analysisrulecriteria-resourcetags
21+
UpdateType: Conditional
22+
PrimitiveType: Json
23+
24+
.FUNCTIONALITY
25+
Vaporshell
26+
#>
27+
28+
[OutputType('Vaporshell.Resource.AccessAnalyzer.Analyzer.AnalysisRuleCriteria')]
29+
[cmdletbinding()]
30+
31+
Param
32+
(
33+
[Parameter(Mandatory = $false)]
34+
$AccountIds,
35+
36+
[Parameter(Mandatory = $false)]
37+
[ValidateScript( {
38+
$allowedTypes = "System.String","System.Collections.Hashtable","System.Management.Automation.PSCustomObject"
39+
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
40+
$true
41+
}
42+
else {
43+
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
44+
}
45+
})]
46+
$ResourceTags
47+
48+
)
49+
50+
Begin {
51+
$obj = [PSCustomObject]@{}
52+
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
53+
}
54+
55+
Process {
56+
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
57+
switch ($key) {
58+
ResourceTags {
59+
if (($PSBoundParameters[$key]).PSObject.TypeNames -contains "System.String"){
60+
try {
61+
$JSONObject = (ConvertFrom-Json -InputObject $PSBoundParameters[$key] -ErrorAction Stop)
62+
}
63+
catch {
64+
$PSCmdlet.ThrowTerminatingError((New-VSError -String "Unable to convert parameter '$key' string value to PSObject! Please use a JSON string OR provide a Hashtable or PSCustomObject instead!"))
65+
}
66+
}
67+
else {
68+
$JSONObject = ([PSCustomObject]$PSBoundParameters[$key])
69+
}
70+
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $JSONObject
71+
}
72+
Default {
73+
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
74+
}
75+
}
76+
}
77+
}
78+
79+
End {
80+
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.AccessAnalyzer.Analyzer.AnalysisRuleCriteria'
81+
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
82+
}
83+
}

VaporShell/Public/Resource Property Types/Add-VSAccessAnalyzerAnalyzerAnalyzerConfiguration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Add-VSAccessAnalyzerAnalyzerAnalyzerConfiguration {
1111
1212
.PARAMETER UnusedAccessConfiguration
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html#cfn-accessanalyzer-analyzer-analyzerconfiguration-unusedaccessconfiguration
14-
UpdateType: Immutable
14+
UpdateType: Conditional
1515
Type: UnusedAccessConfiguration
1616
1717
.FUNCTIONALITY

VaporShell/Public/Resource Property Types/Add-VSAccessAnalyzerAnalyzerUnusedAccessConfiguration.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ function Add-VSAccessAnalyzerAnalyzerUnusedAccessConfiguration {
1111
1212
.PARAMETER UnusedAccessAge
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html#cfn-accessanalyzer-analyzer-unusedaccessconfiguration-unusedaccessage
14-
UpdateType: Immutable
14+
UpdateType: Conditional
1515
PrimitiveType: Integer
1616
17+
.PARAMETER AnalysisRule
18+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-unusedaccessconfiguration.html#cfn-accessanalyzer-analyzer-unusedaccessconfiguration-analysisrule
19+
UpdateType: Conditional
20+
Type: AnalysisRule
21+
1722
.FUNCTIONALITY
1823
Vaporshell
1924
#>
@@ -33,7 +38,10 @@ function Add-VSAccessAnalyzerAnalyzerUnusedAccessConfiguration {
3338
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
3439
}
3540
})]
36-
$UnusedAccessAge
41+
$UnusedAccessAge,
42+
43+
[Parameter(Mandatory = $false)]
44+
$AnalysisRule
3745

3846
)
3947

VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerUser.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ function Add-VSAmazonMQBrokerUser {
3030
PrimitiveType: Boolean
3131
UpdateType: Mutable
3232
33+
.PARAMETER JolokiaApiAccess
34+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-jolokiaapiaccess
35+
PrimitiveType: String
36+
UpdateType: Mutable
37+
3338
.PARAMETER Password
3439
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-user.html#cfn-amazonmq-broker-user-password
3540
PrimitiveType: String
@@ -85,6 +90,18 @@ function Add-VSAmazonMQBrokerUser {
8590
})]
8691
$ConsoleAccess,
8792

93+
[Parameter(Mandatory = $false)]
94+
[ValidateScript( {
95+
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
96+
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
97+
$true
98+
}
99+
else {
100+
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
101+
}
102+
})]
103+
$JolokiaApiAccess,
104+
88105
[Parameter(Mandatory = $true)]
89106
[ValidateScript( {
90107
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
function Add-VSApiGatewayDomainNameV2EndpointConfiguration {
2+
<#
3+
.SYNOPSIS
4+
Adds an AWS::ApiGateway::DomainNameV2.EndpointConfiguration resource property to the template.
5+
6+
.DESCRIPTION
7+
Adds an AWS::ApiGateway::DomainNameV2.EndpointConfiguration resource property to the template.
8+
9+
.LINK
10+
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainnamev2-endpointconfiguration.html
11+
12+
.PARAMETER Types
13+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainnamev2-endpointconfiguration.html#cfn-apigateway-domainnamev2-endpointconfiguration-types
14+
UpdateType: Immutable
15+
Type: List
16+
PrimitiveItemType: String
17+
DuplicatesAllowed: True
18+
19+
.FUNCTIONALITY
20+
Vaporshell
21+
#>
22+
23+
[OutputType('Vaporshell.Resource.ApiGateway.DomainNameV2.EndpointConfiguration')]
24+
[cmdletbinding()]
25+
26+
Param
27+
(
28+
[Parameter(Mandatory = $false)]
29+
$Types
30+
31+
)
32+
33+
Begin {
34+
$obj = [PSCustomObject]@{}
35+
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
36+
}
37+
38+
Process {
39+
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
40+
switch ($key) {
41+
Default {
42+
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
43+
}
44+
}
45+
}
46+
}
47+
48+
End {
49+
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.ApiGateway.DomainNameV2.EndpointConfiguration'
50+
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
51+
}
52+
}

VaporShell/Public/Resource Property Types/Add-VSAppConfigDeploymentDynamicExtensionParameters.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ function Add-VSAppConfigDeploymentDynamicExtensionParameters {
1111
1212
.PARAMETER ParameterValue
1313
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-parametervalue
14+
UpdateType: Immutable
1415
PrimitiveType: String
15-
UpdateType: Mutable
1616
1717
.PARAMETER ExtensionReference
1818
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-extensionreference
19+
UpdateType: Immutable
1920
PrimitiveType: String
20-
UpdateType: Mutable
2121
2222
.PARAMETER ParameterName
2323
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appconfig-deployment-dynamicextensionparameters.html#cfn-appconfig-deployment-dynamicextensionparameters-parametername
24+
UpdateType: Immutable
2425
PrimitiveType: String
25-
UpdateType: Mutable
2626
2727
.FUNCTIONALITY
2828
Vaporshell
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
function Add-VSAppSyncApiAuthMode {
2+
<#
3+
.SYNOPSIS
4+
Adds an AWS::AppSync::Api.AuthMode resource property to the template.
5+
6+
.DESCRIPTION
7+
Adds an AWS::AppSync::Api.AuthMode resource property to the template.
8+
9+
.LINK
10+
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-api-authmode.html
11+
12+
.PARAMETER AuthType
13+
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-api-authmode.html#cfn-appsync-api-authmode-authtype
14+
UpdateType: Mutable
15+
PrimitiveType: String
16+
17+
.FUNCTIONALITY
18+
Vaporshell
19+
#>
20+
21+
[OutputType('Vaporshell.Resource.AppSync.Api.AuthMode')]
22+
[cmdletbinding()]
23+
24+
Param
25+
(
26+
[Parameter(Mandatory = $false)]
27+
[ValidateScript( {
28+
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
29+
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
30+
$true
31+
}
32+
else {
33+
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
34+
}
35+
})]
36+
$AuthType
37+
38+
)
39+
40+
Begin {
41+
$obj = [PSCustomObject]@{}
42+
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
43+
}
44+
45+
Process {
46+
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
47+
switch ($key) {
48+
Default {
49+
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
50+
}
51+
}
52+
}
53+
}
54+
55+
End {
56+
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.AppSync.Api.AuthMode'
57+
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
58+
}
59+
}

0 commit comments

Comments
 (0)