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

Commit

Permalink
!deploy v1.2.1
Browse files Browse the repository at this point in the history
!deploy v1.2.1
  • Loading branch information
scrthq committed Jul 25, 2017
2 parents 2bfe20d + 6881ca9 commit 6854719
Show file tree
Hide file tree
Showing 554 changed files with 5,945 additions and 4,528 deletions.
13 changes: 10 additions & 3 deletions README.md
Expand Up @@ -18,16 +18,23 @@ Vaporshell allows you to either initialize a new template or import an existing

***

## Getting Started
## Getting Started (Documentation)

<http://vaporshell.io/docs/examples>
<http://vaporshell.io/docs>

***

## Module Digest
## Module Digest (Deeper Dive)

<http://vaporshell.io/docs/digest>

***

## Tips & Tricks

<http://vaporshell.io/docs/tips>


***

## Examples
Expand Down
20 changes: 3 additions & 17 deletions Vaporshell/Private/Convert-SpecToFunction.ps1
Expand Up @@ -353,14 +353,7 @@ if ($ResourceType -ne "Property") {
if (!(`$ResourceParams["Properties"])) {
`$ResourceParams.Add("Properties",([PSCustomObject]@{}))
}
`$val = `$((Get-Variable `$key).Value)
if (`$val -eq "True") {
`$val = "true"
}
elseif (`$val -eq "False") {
`$val = "false"
}
`$ResourceParams["Properties"] | Add-Member -MemberType NoteProperty -Name `$key -Value `$val
`$ResourceParams["Properties"] | Add-Member -MemberType NoteProperty -Name `$key -Value `$PSBoundParameters.`$key
}
}
}
Expand All @@ -380,15 +373,8 @@ $scriptContents += @"
`$obj = [PSCustomObject]@{}
}
Process {
foreach (`$psParamKey in `$PSBoundParameters.Keys) {
`$val = `$((Get-Variable `$psParamKey).Value)
if (`$val -eq "True") {
`$val = "true"
}
elseif (`$val -eq "False") {
`$val = "false"
}
`$obj | Add-Member -MemberType NoteProperty -Name `$psParamKey -Value `$val
foreach (`$key in `$PSBoundParameters.Keys) {
`$obj | Add-Member -MemberType NoteProperty -Name `$key -Value `$PSBoundParameters.`$key
}
}
End {
Expand Down
Expand Up @@ -55,15 +55,8 @@ function Add-VSApiGatewayApiKeyStageKey {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -135,15 +135,8 @@ function Add-VSApiGatewayDeploymentMethodSetting {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -208,15 +208,8 @@ function Add-VSApiGatewayDeploymentStageDescription {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -174,15 +174,8 @@ function Add-VSApiGatewayMethodIntegration {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -77,15 +77,8 @@ function Add-VSApiGatewayMethodIntegrationResponse {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -60,15 +60,8 @@ function Add-VSApiGatewayMethodMethodResponse {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -89,15 +89,8 @@ function Add-VSApiGatewayRestApiS3Location {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -135,15 +135,8 @@ function Add-VSApiGatewayStageMethodSetting {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -55,15 +55,8 @@ function Add-VSApiGatewayUsagePlanApiStage {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -56,15 +56,8 @@ function Add-VSApiGatewayUsagePlanQuotaSettings {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
Expand Up @@ -39,15 +39,8 @@ function Add-VSApiGatewayUsagePlanThrottleSettings {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($psParamKey in $PSBoundParameters.Keys) {
$val = $((Get-Variable $psParamKey).Value)
if ($val -eq "True") {
$val = "true"
}
elseif ($val -eq "False") {
$val = "false"
}
$obj | Add-Member -MemberType NoteProperty -Name $psParamKey -Value $val
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
Expand Down
@@ -0,0 +1,118 @@
function Add-VSApplicationAutoScalingScalingPolicyCustomizedMetricSpecification {
<#
.SYNOPSIS
Adds an AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification resource property to the template
.DESCRIPTION
Adds an AWS::ApplicationAutoScaling::ScalingPolicy.CustomizedMetricSpecification resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html
.PARAMETER Dimensions
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-dimensions
DuplicatesAllowed: False
ItemType: MetricDimension
Required: False
Type: List
UpdateType: Mutable
.PARAMETER MetricName
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-metricname
PrimitiveType: String
Required: True
UpdateType: Mutable
.PARAMETER Namespace
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-namespace
PrimitiveType: String
Required: True
UpdateType: Mutable
.PARAMETER Statistic
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-statistic
PrimitiveType: String
Required: True
UpdateType: Mutable
.PARAMETER Unit
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationautoscaling-scalingpolicy-customizedmetricspecification.html#cfn-applicationautoscaling-scalingpolicy-customizedmetricspecification-unit
PrimitiveType: String
Required: False
UpdateType: Mutable
.FUNCTIONALITY
Vaporshell
#>
[OutputType('Vaporshell.Resource.ApplicationAutoScaling.ScalingPolicy.CustomizedMetricSpecification')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "Vaporshell.Resource.ApplicationAutoScaling.ScalingPolicy.MetricDimension"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."
}
})]
$Dimensions,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."
}
})]
$MetricName,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."
}
})]
$Namespace,
[parameter(Mandatory = $true)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."
}
})]
$Statistic,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
throw "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."
}
})]
$Unit
)
Begin {
$obj = [PSCustomObject]@{}
}
Process {
foreach ($key in $PSBoundParameters.Keys) {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
End {
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.ApplicationAutoScaling.ScalingPolicy.CustomizedMetricSpecification'
}
}

0 comments on commit 6854719

Please sign in to comment.