This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 2.7.0 - 2019-03-08 * [Issue #48](#48) * Fixed: Export-VaporShell was having various failures due to the Format-Json private function called during JSON conversion. * Miscellaneous * Brought Resource Type and Property Type functions up to current spec sheet. * Added: Watch and Force parameters to New-VSStack and New-VSChangeSet to watch and/or force stack creation. * Added: Watch parameter to Remove-VSStack and Invoke-VSChangeSetExecution to watch stack events. * Updated: Watch-Stack to handle multiple stack watching at once.
- Loading branch information
Showing
1,143 changed files
with
7,429 additions
and
51,195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,51 @@ | ||
function Format-Json([Parameter(Mandatory, ValueFromPipeline)][String] $json) { | ||
$indent = 0; | ||
($json -Split '\n' | | ||
% { | ||
if ($_ -match '[\}\]]') { | ||
# This line contains ] or }, decrement the indentation level | ||
$indent-- | ||
} | ||
$line = (' ' * $indent * 2) + $_.TrimStart().Replace(': ', ': ') | ||
if ($_ -match '[\{\[]') { | ||
# This line contains [ or {, increment the indentation level | ||
$indent++ | ||
} | ||
$line | ||
}) -Join "`n" | ||
} | ||
function Format-Json { | ||
[CmdletBinding()] | ||
Param ( | ||
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] | ||
[String] | ||
$Json | ||
) | ||
Begin { | ||
$cleaner = { | ||
param([String]$Line) | ||
Process{ | ||
[Regex]::Replace( | ||
$Line, | ||
"\\u(?<Value>[a-zA-Z0-9]{4})", | ||
{ | ||
param($m)([char]([int]::Parse( | ||
$m.Groups['Value'].Value, | ||
[System.Globalization.NumberStyles]::HexNumber | ||
))).ToString() | ||
} | ||
) | ||
} | ||
} | ||
} | ||
Process { | ||
if ($PSVersionTable.PSVersion.Major -lt 6) { | ||
try { | ||
$indent = 0; | ||
$res = $Json -split '\n' | ForEach-Object { | ||
if ($_ -match '[\}\]]') { | ||
# This line contains ] or }, decrement the indentation level | ||
$indent-- | ||
} | ||
$line = (' ' * $indent * 2) + $_.TrimStart().Replace(': ', ': ') | ||
if ($_ -match '[\{\[]') { | ||
# This line contains [ or {, increment the indentation level | ||
$indent++ | ||
} | ||
$cleaner.Invoke($line) | ||
} | ||
$res -join "`n" | ||
} | ||
catch { | ||
($Json -split '\n' | ForEach-Object {$cleaner.Invoke($_)}) -join "`n" | ||
} | ||
} | ||
else { | ||
($Json -split '\n' | ForEach-Object {$cleaner.Invoke($_)}) -join "`n" | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAlexaASKSkillAuthenticationConfiguration.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAlexaASKSkillOverrides.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAlexaASKSkillSkillPackage.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerConfigurationId.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerLogList.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerMaintenanceWindow.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerTagsEntry.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQBrokerUser.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
2 changes: 1 addition & 1 deletion
2
.../Public/Resource Property Types/Add-VSAmazonMQConfigurationAssociationConfigurationId.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAmazonMQConfigurationTagsEntry.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayApiKeyStageKey.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentAccessLogSetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentCanarySetting.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
2 changes: 1 addition & 1 deletion
2
...ell/Public/Resource Property Types/Add-VSApiGatewayDeploymentDeploymentCanarySettings.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentMethodSetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentStageDescription.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayDocumentationPartLocation.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
2 changes: 1 addition & 1 deletion
2
...rShell/Public/Resource Property Types/Add-VSApiGatewayDomainNameEndpointConfiguration.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayMethodIntegration.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayMethodIntegrationResponse.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayMethodMethodResponse.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayRestApiEndpointConfiguration.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayRestApiS3Location.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayStageAccessLogSetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayStageCanarySetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayStageMethodSetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayUsagePlanApiStage.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayUsagePlanQuotaSettings.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayUsagePlanThrottleSettings.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayV2RouteParameterConstraints.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
2 changes: 1 addition & 1 deletion
2
...ll/Public/Resource Property Types/Add-VSApiGatewayV2RouteResponseParameterConstraints.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayV2StageAccessLogSettings.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSApiGatewayV2StageRouteSettings.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
2 changes: 1 addition & 1 deletion
2
...ublic/Resource Property Types/Add-VSAppStreamDirectoryConfigServiceAccountCredentials.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamFleetComputeCapacity.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamFleetDomainJoinInfo.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamFleetVpcConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamImageBuilderDomainJoinInfo.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamImageBuilderVpcConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamStackApplicationSettings.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamStackStorageConnector.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppStreamStackUserSetting.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceAuthorizationConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceAwsIamConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceDynamoDBConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceElasticsearchConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceHttpConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceLambdaConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncDataSourceRdsHttpEndpointConfig.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
2 changes: 1 addition & 1 deletion
2
...rShell/Public/Resource Property Types/Add-VSAppSyncDataSourceRelationalDatabaseConfig.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
2 changes: 1 addition & 1 deletion
2
VaporShell/Public/Resource Property Types/Add-VSAppSyncGraphQLApiLogConfig.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
Oops, something went wrong.