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.
!deploy v2.4.0 to resolve #34 and update functions to latest spec sheet
- Loading branch information
Showing
10 changed files
with
391 additions
and
12 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
70 changes: 70 additions & 0 deletions
70
VaporShell/Public/Resource Property Types/Add-VSGlueClassifierJsonClassifier.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,70 @@ | ||
function Add-VSGlueClassifierJsonClassifier { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::Glue::Classifier.JsonClassifier resource property to the template | ||
.DESCRIPTION | ||
Adds an AWS::Glue::Classifier.JsonClassifier resource property to the template | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html | ||
.PARAMETER JsonPath | ||
Required: True | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html#cfn-glue-classifier-jsonclassifier-jsonpath | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.PARAMETER Name | ||
Required: False | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-jsonclassifier.html#cfn-glue-classifier-jsonclassifier-name | ||
PrimitiveType: String | ||
UpdateType: Immutable | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.Glue.Classifier.JsonClassifier')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.String","Vaporshell.Function" | ||
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 ", ").")) | ||
} | ||
})] | ||
$JsonPath, | ||
[parameter(Mandatory = $false)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.String","Vaporshell.Function" | ||
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 ", ").")) | ||
} | ||
})] | ||
$Name | ||
) | ||
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.Glue.Classifier.JsonClassifier' | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
VaporShell/Public/Resource Property Types/Add-VSGlueClassifierXMLClassifier.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,87 @@ | ||
function Add-VSGlueClassifierXMLClassifier { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::Glue::Classifier.XMLClassifier resource property to the template | ||
.DESCRIPTION | ||
Adds an AWS::Glue::Classifier.XMLClassifier resource property to the template | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html | ||
.PARAMETER RowTag | ||
Required: True | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-rowtag | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.PARAMETER Classification | ||
Required: True | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-classification | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.PARAMETER Name | ||
Required: False | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-classifier-xmlclassifier.html#cfn-glue-classifier-xmlclassifier-name | ||
PrimitiveType: String | ||
UpdateType: Immutable | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.Glue.Classifier.XMLClassifier')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.String","Vaporshell.Function" | ||
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 ", ").")) | ||
} | ||
})] | ||
$RowTag, | ||
[parameter(Mandatory = $true)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.String","Vaporshell.Function" | ||
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 ", ").")) | ||
} | ||
})] | ||
$Classification, | ||
[parameter(Mandatory = $false)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.String","Vaporshell.Function" | ||
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 ", ").")) | ||
} | ||
})] | ||
$Name | ||
) | ||
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.Glue.Classifier.XMLClassifier' | ||
} | ||
} |
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.