This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!deploy v1.2.1
- Loading branch information
Showing
554 changed files
with
5,945 additions
and
4,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
...Property Types/Add-VSApplicationAutoScalingScalingPolicyCustomizedMetricSpecification.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} | ||
} |
Oops, something went wrong.