Skip to content
Permalink
Browse files

!deploy v2.5.5 with fix to Add-UserData and up-to-date resource and p…

…roperty functions
  • Loading branch information...
scrthq committed Oct 2, 2018
1 parent f9b1647 commit 3c41a1d3ab8ce9197c80be4d3aa077f32bcb46b7
Showing with 2,719 additions and 83 deletions.
  1. +6 −0 CHANGELOG.md
  2. +1 −1 VaporShell/Public/Resource Helpers/Add-UserData.ps1
  3. +71 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentAccessLogSetting.ps1
  4. +66 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentCanarySetting.ps1
  5. +66 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentDeploymentCanarySettings.ps1
  6. +16 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayDeploymentStageDescription.ps1
  7. +43 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayMethodIntegration.ps1
  8. +71 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayStageAccessLogSetting.ps1
  9. +83 −0 VaporShell/Public/Resource Property Types/Add-VSApiGatewayStageCanarySetting.ps1
  10. +20 −1 VaporShell/Public/Resource Property Types/Add-VSApiGatewayUsagePlanApiStage.ps1
  11. +17 −0 VaporShell/Public/Resource Property Types/Add-VSCodeBuildProjectArtifacts.ps1
  12. +88 −0 VaporShell/Public/Resource Property Types/Add-VSCodeBuildProjectCloudWatchLogsConfig.ps1
  13. +53 −0 VaporShell/Public/Resource Property Types/Add-VSCodeBuildProjectLogsConfig.ps1
  14. +71 −0 VaporShell/Public/Resource Property Types/Add-VSCodeBuildProjectS3LogsConfig.ps1
  15. +17 −0 VaporShell/Public/Resource Property Types/Add-VSCodeBuildProjectSource.ps1
  16. +4 −4 VaporShell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupEC2TagFilter.ps1
  17. +56 −0 VaporShell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupEC2TagSet.ps1
  18. +56 −0 VaporShell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupEC2TagSetListObject.ps1
  19. +56 −0 VaporShell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupOnPremisesTagSet.ps1
  20. +56 −0 ...hell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupOnPremisesTagSetListObject.ps1
  21. +4 −4 VaporShell/Public/Resource Property Types/Add-VSCodeDeployDeploymentGroupTagFilter.ps1
  22. +54 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetClassicLoadBalancer.ps1
  23. +56 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetClassicLoadBalancersConfig.ps1
  24. +53 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetLoadBalancersConfig.ps1
  25. +25 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetSpotFleetRequestConfigData.ps1
  26. +18 −1 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetSpotPlacement.ps1
  27. +54 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetTargetGroup.ps1
  28. +56 −0 VaporShell/Public/Resource Property Types/Add-VSEC2SpotFleetTargetGroupsConfig.ps1
  29. +28 −2 VaporShell/Public/Resource Property Types/Add-VSECSServiceServiceRegistry.ps1
  30. +10 −0 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionContainerDefinition.ps1
  31. +102 −0 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionDockerVolumeConfiguration.ps1
  32. +29 −1 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionLinuxParameters.ps1
  33. +56 −0 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionRepositoryCredentials.ps1
  34. +73 −0 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionTmpfs.ps1
  35. +8 −0 VaporShell/Public/Resource Property Types/Add-VSECSTaskDefinitionVolume.ps1
  36. +17 −0 ...rShell/Public/Resource Property Types/Add-VSElastiCacheReplicationGroupNodeGroupConfiguration.ps1
  37. +54 −0 VaporShell/Public/Resource Property Types/Add-VSEventsRuleSqsParameters.ps1
  38. +9 −1 VaporShell/Public/Resource Property Types/Add-VSEventsRuleTarget.ps1
  39. +85 −0 VaporShell/Public/Resource Property Types/Add-VSIoT1ClickProjectDeviceTemplate.ps1
  40. +99 −0 VaporShell/Public/Resource Property Types/Add-VSIoT1ClickProjectPlacementTemplate.ps1
  41. +73 −0 VaporShell/Public/Resource Property Types/Add-VSRDSDBClusterScalingConfiguration.ps1
  42. +12 −1 VaporShell/Public/Resource Property Types/Add-VSRDSOptionGroupOptionConfiguration.ps1
  43. +11 −11 VaporShell/Public/Resource Property Types/Add-VSTag.ps1
  44. +8 −0 VaporShell/Public/Resource Types/New-VSApiGatewayDeployment.ps1
  45. +16 −0 VaporShell/Public/Resource Types/New-VSApiGatewayMethod.ps1
  46. +16 −0 VaporShell/Public/Resource Types/New-VSApiGatewayStage.ps1
  47. +56 −0 VaporShell/Public/Resource Types/New-VSCodeBuildProject.ps1
  48. +16 −0 VaporShell/Public/Resource Types/New-VSCodeDeployDeploymentGroup.ps1
  49. +38 −4 VaporShell/Public/Resource Types/New-VSEC2FlowLog.ps1
  50. +50 −47 VaporShell/Public/Resource Types/New-VSEC2VPCEndpoint.ps1
  51. +18 −1 VaporShell/Public/Resource Types/New-VSECSService.ps1
  52. +2 −2 VaporShell/Public/Resource Types/New-VSElastiCacheReplicationGroup.ps1
  53. +159 −0 VaporShell/Public/Resource Types/New-VSIoT1ClickDevice.ps1
  54. +235 −0 VaporShell/Public/Resource Types/New-VSIoT1ClickPlacement.ps1
  55. +175 −0 VaporShell/Public/Resource Types/New-VSIoT1ClickProject.ps1
  56. +25 −0 VaporShell/Public/Resource Types/New-VSRDSDBCluster.ps1
  57. +1 −1 VaporShell/Public/Resource Types/New-VSSageMakerNotebookInstance.ps1
  58. +1 −1 VaporShell/VaporShell.psd1
@@ -2,6 +2,7 @@

<!-- TOC -->

- [2.5.5](#255)
- [2.5.4](#254)
- [2.5.3](#253)
- [2.5.2](#252)
@@ -35,6 +36,11 @@

<!-- /TOC -->

## 2.5.5

- Fixed `Add-UserData`'s use of `Fn::Join` so that it automatically sets `\n` as the delimiter with the `-UseJoin` parameter
- Updated Resource Type and Property Type functions to latest CloudFormation spec

## 2.5.4

- Updated `Add-UserData` with `-Persist` switch to allow flagging the UserData as persistent by adding the `<persist>true</persist>` tag on the bottom of the contents.
@@ -110,7 +110,7 @@ function Add-UserData {
}
}
if ($UseJoin) {
$obj = Add-FnBase64 -ValueToEncode (Add-FnJoin "" ($Values -split "`n") -Verbose:$false) -Verbose:$false
$obj = Add-FnBase64 -ValueToEncode (Add-FnJoin "`n" ($Values -split "`n") -Verbose:$false) -Verbose:$false
}
else {
$obj = Add-FnBase64 -ValueToEncode $Values -Verbose:$false
@@ -0,0 +1,71 @@
function Add-VSApiGatewayDeploymentAccessLogSetting {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Deployment.AccessLogSetting resource property to the template
.DESCRIPTION
Adds an AWS::ApiGateway::Deployment.AccessLogSetting resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html
.PARAMETER DestinationArn
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-destinationarn
PrimitiveType: String
Required: False
UpdateType: Mutable
.PARAMETER Format
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-accesslogsetting.html#cfn-apigateway-deployment-accesslogsetting-format
PrimitiveType: String
Required: False
UpdateType: Mutable
.FUNCTIONALITY
Vaporshell
#>
[OutputType('Vaporshell.Resource.ApiGateway.Deployment.AccessLogSetting')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
}
})]
$DestinationArn,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
}
})]
$Format
)
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.ApiGateway.Deployment.AccessLogSetting'
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
}
}
@@ -0,0 +1,66 @@
function Add-VSApiGatewayDeploymentCanarySetting {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Deployment.CanarySetting resource property to the template
.DESCRIPTION
Adds an AWS::ApiGateway::Deployment.CanarySetting resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html
.PARAMETER PercentTraffic
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-percenttraffic
PrimitiveType: Double
Required: False
UpdateType: Mutable
.PARAMETER StageVariableOverrides
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-stagevariableoverrides
DuplicatesAllowed: False
PrimitiveItemType: String
Required: False
Type: Map
UpdateType: Mutable
.PARAMETER UseStageCache
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-canarysetting.html#cfn-apigateway-deployment-canarysetting-usestagecache
PrimitiveType: Boolean
Required: False
UpdateType: Mutable
.FUNCTIONALITY
Vaporshell
#>
[OutputType('Vaporshell.Resource.ApiGateway.Deployment.CanarySetting')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
[System.Double]
$PercentTraffic,
[parameter(Mandatory = $false)]
[System.Collections.Hashtable]
$StageVariableOverrides,
[parameter(Mandatory = $false)]
[System.Boolean]
$UseStageCache
)
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.ApiGateway.Deployment.CanarySetting'
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
}
}
@@ -0,0 +1,66 @@
function Add-VSApiGatewayDeploymentDeploymentCanarySettings {
<#
.SYNOPSIS
Adds an AWS::ApiGateway::Deployment.DeploymentCanarySettings resource property to the template
.DESCRIPTION
Adds an AWS::ApiGateway::Deployment.DeploymentCanarySettings resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html
.PARAMETER PercentTraffic
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-percenttraffic
PrimitiveType: Double
Required: False
UpdateType: Immutable
.PARAMETER StageVariableOverrides
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-stagevariableoverrides
DuplicatesAllowed: False
PrimitiveItemType: String
Required: False
Type: Map
UpdateType: Immutable
.PARAMETER UseStageCache
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-deploymentcanarysettings.html#cfn-apigateway-deployment-deploymentcanarysettings-usestagecache
PrimitiveType: Boolean
Required: False
UpdateType: Immutable
.FUNCTIONALITY
Vaporshell
#>
[OutputType('Vaporshell.Resource.ApiGateway.Deployment.DeploymentCanarySettings')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
[System.Double]
$PercentTraffic,
[parameter(Mandatory = $false)]
[System.Collections.Hashtable]
$StageVariableOverrides,
[parameter(Mandatory = $false)]
[System.Boolean]
$UseStageCache
)
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.ApiGateway.Deployment.DeploymentCanarySettings'
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
}
}
@@ -9,6 +9,12 @@ function Add-VSApiGatewayDeploymentStageDescription {
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html
.PARAMETER AccessLogSetting
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-accesslogsetting
Required: False
Type: AccessLogSetting
UpdateType: Mutable
.PARAMETER CacheClusterEnabled
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-cacheclusterenabled
PrimitiveType: Boolean
@@ -39,6 +45,12 @@ function Add-VSApiGatewayDeploymentStageDescription {
Required: False
UpdateType: Mutable
.PARAMETER CanarySetting
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-canarysetting
Required: False
Type: CanarySetting
UpdateType: Mutable
.PARAMETER ClientCertificateId
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-deployment-stagedescription.html#cfn-apigateway-deployment-stagedescription-clientcertificateid
PrimitiveType: String
@@ -110,6 +122,8 @@ function Add-VSApiGatewayDeploymentStageDescription {
[cmdletbinding()]
Param
(
[parameter(Mandatory = $false)]
$AccessLogSetting,
[parameter(Mandatory = $false)]
[System.Boolean]
$CacheClusterEnabled,
@@ -134,6 +148,8 @@ function Add-VSApiGatewayDeploymentStageDescription {
[System.Boolean]
$CachingEnabled,
[parameter(Mandatory = $false)]
$CanarySetting,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
@@ -23,6 +23,18 @@ function Add-VSApiGatewayMethodIntegration {
Required: False
UpdateType: Mutable
.PARAMETER ConnectionId
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-connectionid
PrimitiveType: String
Required: False
UpdateType: Mutable
.PARAMETER ConnectionType
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-connectiontype
PrimitiveType: String
Required: False
UpdateType: Mutable
.PARAMETER ContentHandling
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-contenthandling
PrimitiveType: String
@@ -71,6 +83,12 @@ function Add-VSApiGatewayMethodIntegration {
Type: Map
UpdateType: Mutable
.PARAMETER TimeoutInMillis
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-timeoutinmillis
PrimitiveType: Integer
Required: False
UpdateType: Mutable
.PARAMETER Type
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-type
PrimitiveType: String
@@ -106,6 +124,28 @@ function Add-VSApiGatewayMethodIntegration {
})]
$CacheNamespace,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
}
})]
$ConnectionId,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
$true
}
else {
$PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ")."))
}
})]
$ConnectionType,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {
@@ -167,6 +207,9 @@ function Add-VSApiGatewayMethodIntegration {
[System.Collections.Hashtable]
$RequestTemplates,
[parameter(Mandatory = $false)]
[Int]
$TimeoutInMillis,
[parameter(Mandatory = $false)]
[ValidateScript( {
$allowedTypes = "System.String","Vaporshell.Function","Vaporshell.Condition"
if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") {

0 comments on commit 3c41a1d

Please sign in to comment.
You can’t perform that action at this time.