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.9.5 - 2020-02-17 * [Issue #66](#66) * Fixed: `Int`,`Double`, and `Boolean` parameters now accept CloudFormation Intrinsic Functions as parameter values. * Miscellaneous * Brought Resource Type and Property Type functions up to current spec sheet.
- Loading branch information
Showing
784 changed files
with
38,077 additions
and
1,057 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
102 changes: 102 additions & 0 deletions
102
...Shell/Public/Resource Property Types/Add-VSACMPCACertificateAuthorityCrlConfiguration.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,102 @@ | ||
function Add-VSACMPCACertificateAuthorityCrlConfiguration { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::ACMPCA::CertificateAuthority.CrlConfiguration resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::ACMPCA::CertificateAuthority.CrlConfiguration resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html | ||
.PARAMETER Enabled | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-enabled | ||
UpdateType: Mutable | ||
PrimitiveType: Boolean | ||
.PARAMETER ExpirationInDays | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-expirationindays | ||
UpdateType: Mutable | ||
PrimitiveType: Integer | ||
.PARAMETER CustomCname | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-customcname | ||
UpdateType: Mutable | ||
PrimitiveType: String | ||
.PARAMETER S3BucketName | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-crlconfiguration.html#cfn-acmpca-certificateauthority-crlconfiguration-s3bucketname | ||
UpdateType: Mutable | ||
PrimitiveType: String | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.ACMPCA.CertificateAuthority.CrlConfiguration')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $false)] | ||
[ValidateScript( { | ||
$allowedTypes = "System.Boolean","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 ", ").")) | ||
} | ||
})] | ||
$Enabled, | ||
[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 ", ").")) | ||
} | ||
})] | ||
$ExpirationInDays, | ||
[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 ", ").")) | ||
} | ||
})] | ||
$CustomCname, | ||
[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 ", ").")) | ||
} | ||
})] | ||
$S3BucketName | ||
) | ||
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.ACMPCA.CertificateAuthority.CrlConfiguration' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ublic/Resource Property Types/Add-VSACMPCACertificateAuthorityRevocationConfiguration.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,45 @@ | ||
function Add-VSACMPCACertificateAuthorityRevocationConfiguration { | ||
<# | ||
.SYNOPSIS | ||
Adds an AWS::ACMPCA::CertificateAuthority.RevocationConfiguration resource property to the template. | ||
.DESCRIPTION | ||
Adds an AWS::ACMPCA::CertificateAuthority.RevocationConfiguration resource property to the template. | ||
.LINK | ||
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html | ||
.PARAMETER CrlConfiguration | ||
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html#cfn-acmpca-certificateauthority-revocationconfiguration-crlconfiguration | ||
UpdateType: Mutable | ||
Type: CrlConfiguration | ||
.FUNCTIONALITY | ||
Vaporshell | ||
#> | ||
[OutputType('Vaporshell.Resource.ACMPCA.CertificateAuthority.RevocationConfiguration')] | ||
[cmdletbinding()] | ||
Param | ||
( | ||
[parameter(Mandatory = $false)] | ||
$CrlConfiguration | ||
) | ||
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.ACMPCA.CertificateAuthority.RevocationConfiguration' | ||
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n" | ||
} | ||
} |
Oops, something went wrong.