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

Commit

Permalink
!build v2.4.1 with fix for #35
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Aug 28, 2018
1 parent abc01b3 commit a04dcaa
Show file tree
Hide file tree
Showing 880 changed files with 3,419 additions and 3,005 deletions.
56 changes: 30 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
# Changelog
# Changelog <!-- omit in toc -->

<!-- TOC -->

- [Changelog](#changelog)
- [2.4.0](#240)
- [2.3.0](#230)
- [2.2.1](#221)
- [2.2.0](#220)
- [2.1.2](#212)
- [2.1.1](#211)
- [2.1.0](#210)
- [2.0.3](#203)
- [2.0.0](#200)
- [1.2.3](#123)
- [1.2.2](#122)
- [1.2.0](#120)
- [1.1.5](#115)
- [1.1.0](#110)
- [1.0.0](#100)
- [0.7.10](#0710)
- [0.7.09](#0709)
- [0.7.08](#0708)
- [0.7.07](#0707)
- [0.7.06](#0706)
- [0.7.05](#0705)
- [0.7.04](#0704)
- [0.7.03](#0703)
- [0.7.02](#0702)
- [2.4.1](#241)
- [2.4.0](#240)
- [2.3.0](#230)
- [2.2.1](#221)
- [2.2.0](#220)
- [2.1.2](#212)
- [2.1.1](#211)
- [2.1.0](#210)
- [2.0.3](#203)
- [2.0.0](#200)
- [1.2.3](#123)
- [1.2.2](#122)
- [1.2.0](#120)
- [1.1.5](#115)
- [1.1.0](#110)
- [1.0.0](#100)
- [0.7.10](#0710)
- [0.7.09](#0709)
- [0.7.08](#0708)
- [0.7.07](#0707)
- [0.7.06](#0706)
- [0.7.05](#0705)
- [0.7.04](#0704)
- [0.7.03](#0703)
- [0.7.02](#0702)

<!-- /TOC -->

## 2.4.1

- Added `Vaporshell.Condition` to the acceptible types for standard resource parameters ([Issue #35](https://github.com/scrthq/VaporShell/issues/35))

## 2.4.0

- Added `ToString()` method override to `New-VaporResource` for convenience during template building [Issue #34](https://github.com/scrthq/VaporShell/issues/34)
Expand Down
2 changes: 1 addition & 1 deletion VaporShell/Private/Convert-SpecToFunction.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function $FunctionName {
$scriptContents += @"
[parameter(Mandatory = $Mandatory)]
[ValidateScript( {
`$allowedTypes = "System.String","Vaporshell.Function"
`$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]`$(`$_.PSTypeNames) -match "(`$((`$allowedTypes|ForEach-Object{[RegEx]::Escape(`$_)}) -join '|'))") {
`$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSAmazonMQBrokerConfigurationId {
function Add-VSAmazonMQBrokerConfigurationId {
<#
.SYNOPSIS
Adds an AWS::AmazonMQ::Broker.ConfigurationId resource property to the template
Expand Down Expand Up @@ -33,7 +33,7 @@
$Revision,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
function Add-VSAmazonMQBrokerLogList {
<#
.SYNOPSIS
Adds an AWS::AmazonMQ::Broker.LogList resource property to the template
.DESCRIPTION
Adds an AWS::AmazonMQ::Broker.LogList resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html
.PARAMETER Audit
Required: False
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-audit
PrimitiveType: Boolean
UpdateType: Mutable
.PARAMETER General
Required: False
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-general
PrimitiveType: Boolean
UpdateType: Mutable
.FUNCTIONALITY
Vaporshell
#>
[OutputType('Vaporshell.Resource.AmazonMQ.Broker.LogList')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
[System.Boolean]
$Audit,
[parameter(Mandatory = $false)]
[System.Boolean]
$General
)
Begin {
$obj = [PSCustomObject]@{}
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
}
Process {
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
switch ($key) {
Default {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
}
}
End {
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.AmazonMQ.Broker.LogList'
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSAmazonMQBrokerMaintenanceWindow {
function Add-VSAmazonMQBrokerMaintenanceWindow {
<#
.SYNOPSIS
Adds an AWS::AmazonMQ::Broker.MaintenanceWindow resource property to the template
Expand Down Expand Up @@ -36,7 +36,7 @@
(
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -47,7 +47,7 @@
$DayOfWeek,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -58,7 +58,7 @@
$TimeOfDay,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSAmazonMQBrokerUser {
function Add-VSAmazonMQBrokerUser {
<#
.SYNOPSIS
Adds an AWS::AmazonMQ::Broker.User resource property to the template
Expand Down Expand Up @@ -45,7 +45,7 @@
(
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -61,7 +61,7 @@
$ConsoleAccess,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSApiGatewayApiKeyStageKey {
function Add-VSApiGatewayApiKeyStageKey {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::ApiKey.StageKey resource property to the template
Expand Down Expand Up @@ -30,7 +30,7 @@
(
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -41,7 +41,7 @@
$RestApiId,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSApiGatewayDeploymentMethodSetting {
function Add-VSApiGatewayDeploymentMethodSetting {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Deployment.MethodSetting resource property to the template
Expand Down Expand Up @@ -90,7 +90,7 @@
$DataTraceEnabled,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -101,7 +101,7 @@
$HttpMethod,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -115,7 +115,7 @@
$MetricsEnabled,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSApiGatewayDeploymentStageDescription {
function Add-VSApiGatewayDeploymentStageDescription {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Deployment.StageDescription resource property to the template
Expand Down Expand Up @@ -115,7 +115,7 @@
$CacheClusterEnabled,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -135,7 +135,7 @@
$CachingEnabled,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -149,7 +149,7 @@
$DataTraceEnabled,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -160,7 +160,7 @@
$Description,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -171,7 +171,7 @@
$DocumentationVersion,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSApiGatewayDocumentationPartLocation {
function Add-VSApiGatewayDocumentationPartLocation {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::DocumentationPart.Location resource property to the template
Expand Down Expand Up @@ -48,7 +48,7 @@
(
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -59,7 +59,7 @@
$Method,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -70,7 +70,7 @@
$Name,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -81,7 +81,7 @@
$Path,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand All @@ -92,7 +92,7 @@
$StatusCode,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function Add-VSApiGatewayDomainNameEndpointConfiguration {
function Add-VSApiGatewayDomainNameEndpointConfiguration {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::DomainName.EndpointConfiguration resource property to the template
Expand Down
Loading

0 comments on commit a04dcaa

Please sign in to comment.