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.
- Loading branch information
Showing
8 changed files
with
317 additions
and
7 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
54 changes: 54 additions & 0 deletions
54
...blic/Resource Property Types/Add-VSEC2ClientVpnEndpointFederatedAuthenticationRequest.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,54 @@ | ||
function Add-VSEC2ClientVpnEndpointFederatedAuthenticationRequest { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::EC2::ClientVpnEndpoint.FederatedAuthenticationRequest resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::EC2::ClientVpnEndpoint.FederatedAuthenticationRequest resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest.html | ||
.PARAMETER SAMLProviderArn | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-federatedauthenticationrequest.html#cfn-ec2-clientvpnendpoint-federatedauthenticationrequest-samlproviderarn | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.EC2.ClientVpnEndpoint.FederatedAuthenticationRequest')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[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 ", ").")) | ||
} | ||
})] | ||
$SAMLProviderArn | ||
) | ||
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.EC2.ClientVpnEndpoint.FederatedAuthenticationRequest' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...ublic/Resource Property Types/Add-VSKinesisFirehoseDeliveryStreamRedshiftRetryOptions.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,54 @@ | ||
function Add-VSKinesisFirehoseDeliveryStreamRedshiftRetryOptions { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::KinesisFirehose::DeliveryStream.RedshiftRetryOptions resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::KinesisFirehose::DeliveryStream.RedshiftRetryOptions resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftretryoptions.html | ||
.PARAMETER DurationInSeconds | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-redshiftretryoptions.html#cfn-kinesisfirehose-deliverystream-redshiftretryoptions-durationinseconds | ||
UpdateType: Mutable | ||
PrimitiveType: Integer | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.KinesisFirehose.DeliveryStream.RedshiftRetryOptions')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $false)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.Int32","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 ", ").")) | ||
} | ||
})] | ||
$DurationInSeconds | ||
) | ||
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.KinesisFirehose.DeliveryStream.RedshiftRetryOptions' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...ll/Public/Resource Property Types/Add-VSKinesisFirehoseDeliveryStreamVpcConfiguration.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,72 @@ | ||
function Add-VSKinesisFirehoseDeliveryStreamVpcConfiguration { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::KinesisFirehose::DeliveryStream.VpcConfiguration resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::KinesisFirehose::DeliveryStream.VpcConfiguration resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-vpcconfiguration.html | ||
.PARAMETER RoleARN | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-vpcconfiguration.html#cfn-kinesisfirehose-deliverystream-vpcconfiguration-rolearn | ||
UpdateType: Immutable | ||
PrimitiveType: String | ||
.PARAMETER SubnetIds | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-vpcconfiguration.html#cfn-kinesisfirehose-deliverystream-vpcconfiguration-subnetids | ||
UpdateType: Immutable | ||
Type: List | ||
PrimitiveItemType: String | ||
DuplicatesAllowed: False | ||
.PARAMETER SecurityGroupIds | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-vpcconfiguration.html#cfn-kinesisfirehose-deliverystream-vpcconfiguration-securitygroupids | ||
UpdateType: Immutable | ||
Type: List | ||
PrimitiveItemType: String | ||
DuplicatesAllowed: False | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.KinesisFirehose.DeliveryStream.VpcConfiguration')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[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 ", ").")) | ||
} | ||
})] | ||
$RoleARN, | ||
[parameter(Mandatory = $true)] | ||
$SubnetIds, | ||
[parameter(Mandatory = $true)] | ||
$SecurityGroupIds | ||
) | ||
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.KinesisFirehose.DeliveryStream.VpcConfiguration' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...Public/Resource Property Types/Add-VSStepFunctionsStateMachineDefinitionSubstitutions.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,38 @@ | ||
function Add-VSStepFunctionsStateMachineDefinitionSubstitutions { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::StepFunctions::StateMachine.DefinitionSubstitutions resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::StepFunctions::StateMachine.DefinitionSubstitutions resource property to the template. | ||
.LINK | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.StepFunctions.StateMachine.DefinitionSubstitutions')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
) | ||
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.StepFunctions.StateMachine.DefinitionSubstitutions' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
VaporShell/Public/Resource Property Types/Add-VSStepFunctionsStateMachineS3Location.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,86 @@ | ||
function Add-VSStepFunctionsStateMachineS3Location { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::StepFunctions::StateMachine.S3Location resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::StepFunctions::StateMachine.S3Location resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-s3location.html | ||
.PARAMETER Bucket | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-s3location.html#cfn-stepfunctions-statemachine-s3location-bucket | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.PARAMETER Version | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-s3location.html#cfn-stepfunctions-statemachine-s3location-version | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.PARAMETER Key | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stepfunctions-statemachine-s3location.html#cfn-stepfunctions-statemachine-s3location-key | ||
PrimitiveType: String | ||
UpdateType: Mutable | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.StepFunctions.StateMachine.S3Location')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $true)] | ||
[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 ", ").")) | ||
} | ||
})] | ||
$Bucket, | ||
[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 ", ").")) | ||
} | ||
})] | ||
$Version, | ||
[parameter(Mandatory = $true)] | ||
[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 ", ").")) | ||
} | ||
})] | ||
$Key | ||
) | ||
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.StepFunctions.StateMachine.S3Location' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |