VaporShell.NetworkFirewall.psm1
# PSM1 Contents 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" } } } function Get-TrueCount { Param ( [parameter(Mandatory = $false,Position = 0,ValueFromPipeline = $true)] $Array ) Process { if ($array) { if ($array.Count) { $count = $array.Count } else { $count = 1 } } else { $count = 0 } } End { return $count } } function New-VSError { <# .SYNOPSIS Error generator function to use in tandem with $PSCmdlet.ThrowTerminatingError() .PARAMETER Result Allows input of an error from AWS SDK, resulting in the Exception message being parsed out. .PARAMETER String Used to create basic String message errors in the same wrapper #> [cmdletbinding(DefaultParameterSetName="Result")] param( [parameter(Position=0,ParameterSetName="Result")] $Result, [parameter(Position=0,ParameterSetName="String")] $String ) switch ($PSCmdlet.ParameterSetName) { Result { $Exception = "$($result.Exception.InnerException.Message)" } String { $Exception = "$String" } } $e = New-Object "System.Exception" $Exception $errorRecord = New-Object 'System.Management.Automation.ErrorRecord' $e, $null, ([System.Management.Automation.ErrorCategory]::InvalidOperation), $null return $errorRecord } function ResolveS3Endpoint { <# .SYNOPSIS Resolves the S3 endpoint most appropriate for each region. #> Param ( [parameter(Mandatory=$true,Position=0)] [ValidateSet("eu-west-2","ap-south-1","us-east-2","sa-east-1","us-west-1","us-west-2","eu-west-1","ap-southeast-2","ca-central-1","ap-northeast-2","us-east-1","eu-central-1","ap-southeast-1","ap-northeast-1")] [String] $Region ) $endpointMap = @{ "us-east-2" = "s3.us-east-2.amazonaws.com" "us-east-1" = "s3.amazonaws.com" "us-west-1" = "s3-us-west-1.amazonaws.com" "us-west-2" = "s3-us-west-2.amazonaws.com" "ca-central-1" = "s3.ca-central-1.amazonaws.com" "ap-south-1" = "s3.ap-south-1.amazonaws.com" "ap-northeast-2" = "s3.ap-northeast-2.amazonaws.com" "ap-southeast-1" = "s3-ap-southeast-1.amazonaws.com" "ap-southeast-2" = "s3-ap-southeast-2.amazonaws.com" "ap-northeast-1" = "s3-ap-northeast-1.amazonaws.com" "eu-central-1" = "s3.eu-central-1.amazonaws.com" "eu-west-1" = "s3-eu-west-1.amazonaws.com" "eu-west-2" = "s3.eu-west-2.amazonaws.com" "sa-east-1" = "s3-sa-east-1.amazonaws.com" } return $endpointMap[$Region] } function Add-VSNetworkFirewallFirewallPolicyActionDefinition { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.ActionDefinition resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.ActionDefinition resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-actiondefinition.html .PARAMETER PublishMetricAction Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-actiondefinition.html#cfn-networkfirewall-firewallpolicy-actiondefinition-publishmetricaction UpdateType: Mutable Type: PublishMetricAction .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyActionDefinition])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $PublishMetricAction ) Process { $obj = [NetworkFirewallFirewallPolicyActionDefinition]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyActionDefinition' function Add-VSNetworkFirewallFirewallPolicyCustomAction { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.CustomAction resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.CustomAction resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-customaction.html .PARAMETER ActionName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-customaction.html#cfn-networkfirewall-firewallpolicy-customaction-actionname UpdateType: Mutable PrimitiveType: String .PARAMETER ActionDefinition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-customaction.html#cfn-networkfirewall-firewallpolicy-customaction-actiondefinition UpdateType: Mutable Type: ActionDefinition .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyCustomAction])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $ActionName, [parameter(Mandatory = $true)] $ActionDefinition ) Process { $obj = [NetworkFirewallFirewallPolicyCustomAction]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyCustomAction' function Add-VSNetworkFirewallFirewallPolicyDimension { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.Dimension resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.Dimension resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-dimension.html .PARAMETER Value Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-dimension.html#cfn-networkfirewall-firewallpolicy-dimension-value UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyDimension])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Value ) Process { $obj = [NetworkFirewallFirewallPolicyDimension]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyDimension' function Add-VSNetworkFirewallFirewallPolicyFirewallPolicy { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.FirewallPolicy resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.FirewallPolicy resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html .PARAMETER StatelessDefaultActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statelessdefaultactions UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER StatelessFragmentDefaultActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statelessfragmentdefaultactions UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER StatelessCustomActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statelesscustomactions UpdateType: Mutable Type: List ItemType: CustomAction DuplicatesAllowed: True .PARAMETER StatelessRuleGroupReferences Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statelessrulegroupreferences UpdateType: Mutable Type: List ItemType: StatelessRuleGroupReference DuplicatesAllowed: True .PARAMETER StatefulRuleGroupReferences Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statefulrulegroupreferences UpdateType: Mutable Type: List ItemType: StatefulRuleGroupReference DuplicatesAllowed: True .PARAMETER StatefulDefaultActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statefuldefaultactions UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER StatefulEngineOptions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy-statefulengineoptions UpdateType: Mutable Type: StatefulEngineOptions .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyFirewallPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $StatelessDefaultActions, [parameter(Mandatory = $true)] $StatelessFragmentDefaultActions, [parameter(Mandatory = $false)] [object] $StatelessCustomActions, [parameter(Mandatory = $false)] [object] $StatelessRuleGroupReferences, [parameter(Mandatory = $false)] [object] $StatefulRuleGroupReferences, [parameter(Mandatory = $false)] $StatefulDefaultActions, [parameter(Mandatory = $false)] $StatefulEngineOptions ) Process { $obj = [NetworkFirewallFirewallPolicyFirewallPolicy]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyFirewallPolicy' function Add-VSNetworkFirewallFirewallPolicyPublishMetricAction { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.PublishMetricAction resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.PublishMetricAction resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-publishmetricaction.html .PARAMETER Dimensions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-publishmetricaction.html#cfn-networkfirewall-firewallpolicy-publishmetricaction-dimensions UpdateType: Mutable Type: List ItemType: Dimension DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyPublishMetricAction])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Dimensions ) Process { $obj = [NetworkFirewallFirewallPolicyPublishMetricAction]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyPublishMetricAction' function Add-VSNetworkFirewallFirewallPolicyStatefulEngineOptions { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.StatefulEngineOptions resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.StatefulEngineOptions resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulengineoptions.html .PARAMETER RuleOrder Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulengineoptions.html#cfn-networkfirewall-firewallpolicy-statefulengineoptions-ruleorder UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyStatefulEngineOptions])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $RuleOrder ) Process { $obj = [NetworkFirewallFirewallPolicyStatefulEngineOptions]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyStatefulEngineOptions' function Add-VSNetworkFirewallFirewallPolicyStatefulRuleGroupReference { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.StatefulRuleGroupReference resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.StatefulRuleGroupReference resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulrulegroupreference.html .PARAMETER ResourceArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulrulegroupreference.html#cfn-networkfirewall-firewallpolicy-statefulrulegroupreference-resourcearn UpdateType: Mutable PrimitiveType: String .PARAMETER Priority Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statefulrulegroupreference.html#cfn-networkfirewall-firewallpolicy-statefulrulegroupreference-priority UpdateType: Mutable PrimitiveType: Integer .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyStatefulRuleGroupReference])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $ResourceArn, [parameter(Mandatory = $false)] [object] $Priority ) Process { $obj = [NetworkFirewallFirewallPolicyStatefulRuleGroupReference]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyStatefulRuleGroupReference' function Add-VSNetworkFirewallFirewallPolicyStatelessRuleGroupReference { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy.StatelessRuleGroupReference resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy.StatelessRuleGroupReference resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statelessrulegroupreference.html .PARAMETER ResourceArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statelessrulegroupreference.html#cfn-networkfirewall-firewallpolicy-statelessrulegroupreference-resourcearn UpdateType: Mutable PrimitiveType: String .PARAMETER Priority Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewallpolicy-statelessrulegroupreference.html#cfn-networkfirewall-firewallpolicy-statelessrulegroupreference-priority UpdateType: Mutable PrimitiveType: Integer .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicyStatelessRuleGroupReference])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $ResourceArn, [parameter(Mandatory = $true)] [object] $Priority ) Process { $obj = [NetworkFirewallFirewallPolicyStatelessRuleGroupReference]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallPolicyStatelessRuleGroupReference' function Add-VSNetworkFirewallFirewallSubnetMapping { <# .SYNOPSIS Adds an AWS::NetworkFirewall::Firewall.SubnetMapping resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::Firewall.SubnetMapping resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewall-subnetmapping.html .PARAMETER SubnetId Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-firewall-subnetmapping.html#cfn-networkfirewall-firewall-subnetmapping-subnetid UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallSubnetMapping])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $SubnetId ) Process { $obj = [NetworkFirewallFirewallSubnetMapping]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallFirewallSubnetMapping' function Add-VSNetworkFirewallLoggingConfigurationLogDestinationConfig { <# .SYNOPSIS Adds an AWS::NetworkFirewall::LoggingConfiguration.LogDestinationConfig resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::LoggingConfiguration.LogDestinationConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html .PARAMETER LogType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html#cfn-networkfirewall-loggingconfiguration-logdestinationconfig-logtype UpdateType: Mutable PrimitiveType: String .PARAMETER LogDestinationType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html#cfn-networkfirewall-loggingconfiguration-logdestinationconfig-logdestinationtype UpdateType: Mutable PrimitiveType: String .PARAMETER LogDestination Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-logdestinationconfig.html#cfn-networkfirewall-loggingconfiguration-logdestinationconfig-logdestination UpdateType: Mutable Type: Map PrimitiveItemType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallLoggingConfigurationLogDestinationConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $LogType, [parameter(Mandatory = $true)] [object] $LogDestinationType, [parameter(Mandatory = $true)] [IDictionary] $LogDestination ) Process { $obj = [NetworkFirewallLoggingConfigurationLogDestinationConfig]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallLoggingConfigurationLogDestinationConfig' function Add-VSNetworkFirewallLoggingConfigurationLoggingConfiguration { <# .SYNOPSIS Adds an AWS::NetworkFirewall::LoggingConfiguration.LoggingConfiguration resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::LoggingConfiguration.LoggingConfiguration resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-loggingconfiguration.html .PARAMETER LogDestinationConfigs Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-loggingconfiguration-loggingconfiguration.html#cfn-networkfirewall-loggingconfiguration-loggingconfiguration-logdestinationconfigs UpdateType: Mutable Type: List ItemType: LogDestinationConfig .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallLoggingConfigurationLoggingConfiguration])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $LogDestinationConfigs ) Process { $obj = [NetworkFirewallLoggingConfigurationLoggingConfiguration]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallLoggingConfigurationLoggingConfiguration' function Add-VSNetworkFirewallRuleGroupActionDefinition { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.ActionDefinition resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.ActionDefinition resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-actiondefinition.html .PARAMETER PublishMetricAction Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-actiondefinition.html#cfn-networkfirewall-rulegroup-actiondefinition-publishmetricaction UpdateType: Mutable Type: PublishMetricAction .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupActionDefinition])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $PublishMetricAction ) Process { $obj = [NetworkFirewallRuleGroupActionDefinition]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupActionDefinition' function Add-VSNetworkFirewallRuleGroupAddress { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.Address resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.Address resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-address.html .PARAMETER AddressDefinition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-address.html#cfn-networkfirewall-rulegroup-address-addressdefinition UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupAddress])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $AddressDefinition ) Process { $obj = [NetworkFirewallRuleGroupAddress]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupAddress' function Add-VSNetworkFirewallRuleGroupCustomAction { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.CustomAction resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.CustomAction resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-customaction.html .PARAMETER ActionName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-customaction.html#cfn-networkfirewall-rulegroup-customaction-actionname UpdateType: Mutable PrimitiveType: String .PARAMETER ActionDefinition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-customaction.html#cfn-networkfirewall-rulegroup-customaction-actiondefinition UpdateType: Mutable Type: ActionDefinition .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupCustomAction])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $ActionName, [parameter(Mandatory = $true)] $ActionDefinition ) Process { $obj = [NetworkFirewallRuleGroupCustomAction]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupCustomAction' function Add-VSNetworkFirewallRuleGroupDimension { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.Dimension resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.Dimension resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-dimension.html .PARAMETER Value Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-dimension.html#cfn-networkfirewall-rulegroup-dimension-value UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupDimension])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Value ) Process { $obj = [NetworkFirewallRuleGroupDimension]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupDimension' function Add-VSNetworkFirewallRuleGroupHeader { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.Header resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.Header resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html .PARAMETER Protocol Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-protocol UpdateType: Mutable PrimitiveType: String .PARAMETER Source Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-source UpdateType: Mutable PrimitiveType: String .PARAMETER SourcePort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-sourceport UpdateType: Mutable PrimitiveType: String .PARAMETER Direction Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-direction UpdateType: Mutable PrimitiveType: String .PARAMETER Destination Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-destination UpdateType: Mutable PrimitiveType: String .PARAMETER DestinationPort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-header.html#cfn-networkfirewall-rulegroup-header-destinationport UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupHeader])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Protocol, [parameter(Mandatory = $true)] [object] $Source, [parameter(Mandatory = $true)] [object] $SourcePort, [parameter(Mandatory = $true)] [object] $Direction, [parameter(Mandatory = $true)] [object] $Destination, [parameter(Mandatory = $true)] [object] $DestinationPort ) Process { $obj = [NetworkFirewallRuleGroupHeader]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupHeader' function Add-VSNetworkFirewallRuleGroupIPSet { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.IPSet resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.IPSet resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ipset.html .PARAMETER Definition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ipset.html#cfn-networkfirewall-rulegroup-ipset-definition UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupIPSet])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Definition ) Process { $obj = [NetworkFirewallRuleGroupIPSet]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupIPSet' function Add-VSNetworkFirewallRuleGroupMatchAttributes { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.MatchAttributes resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.MatchAttributes resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html .PARAMETER Sources Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-sources UpdateType: Mutable Type: List ItemType: Address DuplicatesAllowed: True .PARAMETER Destinations Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-destinations UpdateType: Mutable Type: List ItemType: Address DuplicatesAllowed: True .PARAMETER SourcePorts Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-sourceports UpdateType: Mutable Type: List ItemType: PortRange DuplicatesAllowed: True .PARAMETER DestinationPorts Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-destinationports UpdateType: Mutable Type: List ItemType: PortRange DuplicatesAllowed: True .PARAMETER Protocols Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-protocols UpdateType: Mutable Type: List PrimitiveItemType: Integer DuplicatesAllowed: True .PARAMETER TCPFlags Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-matchattributes.html#cfn-networkfirewall-rulegroup-matchattributes-tcpflags UpdateType: Mutable Type: List ItemType: TCPFlagField DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupMatchAttributes])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Sources, [parameter(Mandatory = $false)] [object] $Destinations, [parameter(Mandatory = $false)] [object] $SourcePorts, [parameter(Mandatory = $false)] [object] $DestinationPorts, [parameter(Mandatory = $false)] $Protocols, [parameter(Mandatory = $false)] [object] $TCPFlags ) Process { $obj = [NetworkFirewallRuleGroupMatchAttributes]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupMatchAttributes' function Add-VSNetworkFirewallRuleGroupPortRange { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.PortRange resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.PortRange resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-portrange.html .PARAMETER FromPort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-portrange.html#cfn-networkfirewall-rulegroup-portrange-fromport UpdateType: Mutable PrimitiveType: Integer .PARAMETER ToPort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-portrange.html#cfn-networkfirewall-rulegroup-portrange-toport UpdateType: Mutable PrimitiveType: Integer .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupPortRange])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $FromPort, [parameter(Mandatory = $true)] [object] $ToPort ) Process { $obj = [NetworkFirewallRuleGroupPortRange]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupPortRange' function Add-VSNetworkFirewallRuleGroupPortSet { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.PortSet resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.PortSet resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-portset.html .PARAMETER Definition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-portset.html#cfn-networkfirewall-rulegroup-portset-definition UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupPortSet])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Definition ) Process { $obj = [NetworkFirewallRuleGroupPortSet]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupPortSet' function Add-VSNetworkFirewallRuleGroupPublishMetricAction { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.PublishMetricAction resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.PublishMetricAction resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-publishmetricaction.html .PARAMETER Dimensions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-publishmetricaction.html#cfn-networkfirewall-rulegroup-publishmetricaction-dimensions UpdateType: Mutable Type: List ItemType: Dimension DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupPublishMetricAction])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Dimensions ) Process { $obj = [NetworkFirewallRuleGroupPublishMetricAction]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupPublishMetricAction' function Add-VSNetworkFirewallRuleGroupRuleDefinition { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RuleDefinition resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RuleDefinition resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruledefinition.html .PARAMETER MatchAttributes Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruledefinition.html#cfn-networkfirewall-rulegroup-ruledefinition-matchattributes UpdateType: Mutable Type: MatchAttributes .PARAMETER Actions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruledefinition.html#cfn-networkfirewall-rulegroup-ruledefinition-actions UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRuleDefinition])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $MatchAttributes, [parameter(Mandatory = $true)] $Actions ) Process { $obj = [NetworkFirewallRuleGroupRuleDefinition]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRuleDefinition' function Add-VSNetworkFirewallRuleGroupRuleGroup { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RuleGroup resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RuleGroup resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulegroup.html .PARAMETER RuleVariables Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulegroup.html#cfn-networkfirewall-rulegroup-rulegroup-rulevariables UpdateType: Mutable Type: RuleVariables .PARAMETER RulesSource Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulegroup.html#cfn-networkfirewall-rulegroup-rulegroup-rulessource UpdateType: Mutable Type: RulesSource .PARAMETER StatefulRuleOptions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulegroup.html#cfn-networkfirewall-rulegroup-rulegroup-statefulruleoptions UpdateType: Mutable Type: StatefulRuleOptions .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRuleGroup])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $RuleVariables, [parameter(Mandatory = $true)] $RulesSource, [parameter(Mandatory = $false)] $StatefulRuleOptions ) Process { $obj = [NetworkFirewallRuleGroupRuleGroup]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRuleGroup' function Add-VSNetworkFirewallRuleGroupRuleOption { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RuleOption resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RuleOption resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruleoption.html .PARAMETER Keyword Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruleoption.html#cfn-networkfirewall-rulegroup-ruleoption-keyword UpdateType: Mutable PrimitiveType: String .PARAMETER Settings Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-ruleoption.html#cfn-networkfirewall-rulegroup-ruleoption-settings UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRuleOption])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Keyword, [parameter(Mandatory = $false)] $Settings ) Process { $obj = [NetworkFirewallRuleGroupRuleOption]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRuleOption' function Add-VSNetworkFirewallRuleGroupRulesSource { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RulesSource resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RulesSource resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessource.html .PARAMETER RulesString Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessource.html#cfn-networkfirewall-rulegroup-rulessource-rulesstring UpdateType: Mutable PrimitiveType: String .PARAMETER RulesSourceList Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessource.html#cfn-networkfirewall-rulegroup-rulessource-rulessourcelist UpdateType: Mutable Type: RulesSourceList .PARAMETER StatefulRules Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessource.html#cfn-networkfirewall-rulegroup-rulessource-statefulrules UpdateType: Mutable Type: List ItemType: StatefulRule DuplicatesAllowed: True .PARAMETER StatelessRulesAndCustomActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessource.html#cfn-networkfirewall-rulegroup-rulessource-statelessrulesandcustomactions UpdateType: Mutable Type: StatelessRulesAndCustomActions .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRulesSource])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $RulesString, [parameter(Mandatory = $false)] $RulesSourceList, [parameter(Mandatory = $false)] [object] $StatefulRules, [parameter(Mandatory = $false)] $StatelessRulesAndCustomActions ) Process { $obj = [NetworkFirewallRuleGroupRulesSource]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRulesSource' function Add-VSNetworkFirewallRuleGroupRulesSourceList { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RulesSourceList resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RulesSourceList resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessourcelist.html .PARAMETER Targets Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessourcelist.html#cfn-networkfirewall-rulegroup-rulessourcelist-targets UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER TargetTypes Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessourcelist.html#cfn-networkfirewall-rulegroup-rulessourcelist-targettypes UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER GeneratedRulesType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulessourcelist.html#cfn-networkfirewall-rulegroup-rulessourcelist-generatedrulestype UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRulesSourceList])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Targets, [parameter(Mandatory = $true)] $TargetTypes, [parameter(Mandatory = $true)] [object] $GeneratedRulesType ) Process { $obj = [NetworkFirewallRuleGroupRulesSourceList]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRulesSourceList' function Add-VSNetworkFirewallRuleGroupRuleVariables { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.RuleVariables resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.RuleVariables resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulevariables.html .PARAMETER IPSets Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulevariables.html#cfn-networkfirewall-rulegroup-rulevariables-ipsets UpdateType: Mutable Type: Map ItemType: IPSet .PARAMETER PortSets Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-rulevariables.html#cfn-networkfirewall-rulegroup-rulevariables-portsets UpdateType: Mutable Type: Map ItemType: PortSet .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupRuleVariables])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $IPSets, [parameter(Mandatory = $false)] [object] $PortSets ) Process { $obj = [NetworkFirewallRuleGroupRuleVariables]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupRuleVariables' function Add-VSNetworkFirewallRuleGroupStatefulRule { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.StatefulRule resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.StatefulRule resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html .PARAMETER Action Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-action UpdateType: Mutable PrimitiveType: String .PARAMETER Header Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-header UpdateType: Mutable Type: Header .PARAMETER RuleOptions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulrule.html#cfn-networkfirewall-rulegroup-statefulrule-ruleoptions UpdateType: Mutable Type: List ItemType: RuleOption DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupStatefulRule])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Action, [parameter(Mandatory = $true)] $Header, [parameter(Mandatory = $true)] [object] $RuleOptions ) Process { $obj = [NetworkFirewallRuleGroupStatefulRule]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupStatefulRule' function Add-VSNetworkFirewallRuleGroupStatefulRuleOptions { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.StatefulRuleOptions resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.StatefulRuleOptions resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulruleoptions.html .PARAMETER RuleOrder Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statefulruleoptions.html#cfn-networkfirewall-rulegroup-statefulruleoptions-ruleorder UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupStatefulRuleOptions])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $RuleOrder ) Process { $obj = [NetworkFirewallRuleGroupStatefulRuleOptions]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupStatefulRuleOptions' function Add-VSNetworkFirewallRuleGroupStatelessRule { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.StatelessRule resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.StatelessRule resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrule.html .PARAMETER RuleDefinition Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrule.html#cfn-networkfirewall-rulegroup-statelessrule-ruledefinition UpdateType: Mutable Type: RuleDefinition .PARAMETER Priority Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrule.html#cfn-networkfirewall-rulegroup-statelessrule-priority UpdateType: Mutable PrimitiveType: Integer .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupStatelessRule])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $RuleDefinition, [parameter(Mandatory = $true)] [object] $Priority ) Process { $obj = [NetworkFirewallRuleGroupStatelessRule]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupStatelessRule' function Add-VSNetworkFirewallRuleGroupStatelessRulesAndCustomActions { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.StatelessRulesAndCustomActions resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.StatelessRulesAndCustomActions resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html .PARAMETER StatelessRules Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html#cfn-networkfirewall-rulegroup-statelessrulesandcustomactions-statelessrules UpdateType: Mutable Type: List ItemType: StatelessRule DuplicatesAllowed: True .PARAMETER CustomActions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html#cfn-networkfirewall-rulegroup-statelessrulesandcustomactions-customactions UpdateType: Mutable Type: List ItemType: CustomAction DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupStatelessRulesAndCustomActions])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $StatelessRules, [parameter(Mandatory = $false)] [object] $CustomActions ) Process { $obj = [NetworkFirewallRuleGroupStatelessRulesAndCustomActions]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupStatelessRulesAndCustomActions' function Add-VSNetworkFirewallRuleGroupTCPFlagField { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup.TCPFlagField resource property to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup.TCPFlagField resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-tcpflagfield.html .PARAMETER Flags Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-tcpflagfield.html#cfn-networkfirewall-rulegroup-tcpflagfield-flags UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER Masks Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-tcpflagfield.html#cfn-networkfirewall-rulegroup-tcpflagfield-masks UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroupTCPFlagField])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Flags, [parameter(Mandatory = $false)] $Masks ) Process { $obj = [NetworkFirewallRuleGroupTCPFlagField]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'Add-VSNetworkFirewallRuleGroupTCPFlagField' function New-VSNetworkFirewallFirewall { <# .SYNOPSIS Adds an AWS::NetworkFirewall::Firewall resource to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::Firewall resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html .PARAMETER LogicalId The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance. .PARAMETER FirewallName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-firewallname UpdateType: Immutable PrimitiveType: String .PARAMETER FirewallPolicyArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-firewallpolicyarn UpdateType: Mutable PrimitiveType: String .PARAMETER VpcId Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-vpcid UpdateType: Immutable PrimitiveType: String .PARAMETER SubnetMappings Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-subnetmappings UpdateType: Mutable Type: List ItemType: SubnetMapping DuplicatesAllowed: False .PARAMETER DeleteProtection Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-deleteprotection UpdateType: Mutable PrimitiveType: Boolean .PARAMETER SubnetChangeProtection Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-subnetchangeprotection UpdateType: Mutable PrimitiveType: Boolean .PARAMETER FirewallPolicyChangeProtection Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-firewallpolicychangeprotection UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Description Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-description UpdateType: Mutable PrimitiveType: String .PARAMETER Tags Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewall.html#cfn-networkfirewall-firewall-tags UpdateType: Mutable Type: List ItemType: Tag DuplicatesAllowed: False .PARAMETER DeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default. To keep a resource when its stack is deleted, specify Retain for that resource. You can use retain for any resource. For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER UpdateReplacePolicy Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation. When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters. If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update. Recreating the resource generates a new physical ID. AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource. By default, AWS CloudFormation then deletes the old resource. Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource. For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance. You can apply the UpdateReplacePolicy attribute to any resource. UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID. For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one. The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance. The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference. For more information on resource update behavior, see Update Behaviors of Stack Resources. The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets. Note Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources. Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots. UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope. UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates. Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER DependsOn With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created. .PARAMETER Metadata The Metadata attribute enables you to associate structured data with a resource. By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration. In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values. This will be returned when describing the resource using AWS CLI. .PARAMETER UpdatePolicy Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource. AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group. You must use the "Add-UpdatePolicy" function or the [UpdatePolicy] class here. .PARAMETER Condition Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned. .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewall])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] [object] $FirewallName, [parameter(Mandatory = $true)] [object] $FirewallPolicyArn, [parameter(Mandatory = $true)] [object] $VpcId, [parameter(Mandatory = $true)] [object] $SubnetMappings, [parameter(Mandatory = $false)] [object] $DeleteProtection, [parameter(Mandatory = $false)] [object] $SubnetChangeProtection, [parameter(Mandatory = $false)] [object] $FirewallPolicyChangeProtection, [parameter(Mandatory = $false)] [object] $Description, [TransformTag()] [object] [parameter(Mandatory = $false)] $Tags, [parameter()] [DeletionPolicy] $DeletionPolicy, [parameter()] [UpdateReplacePolicy] $UpdateReplacePolicy, [parameter(Mandatory = $false)] [string[]] $DependsOn, [parameter(Mandatory = $false)] [VSJson] $Metadata, [parameter(Mandatory = $false)] [UpdatePolicy] $UpdatePolicy, [parameter(Mandatory = $false)] [string] $Condition ) Process { $obj = [NetworkFirewallFirewall]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'New-VSNetworkFirewallFirewall' function New-VSNetworkFirewallFirewallPolicy { <# .SYNOPSIS Adds an AWS::NetworkFirewall::FirewallPolicy resource to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::FirewallPolicy resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewallpolicy.html .PARAMETER LogicalId The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance. .PARAMETER FirewallPolicyName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicyname UpdateType: Immutable PrimitiveType: String .PARAMETER FirewallPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-firewallpolicy UpdateType: Mutable Type: FirewallPolicy .PARAMETER Description Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-description UpdateType: Mutable PrimitiveType: String .PARAMETER Tags Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-firewallpolicy.html#cfn-networkfirewall-firewallpolicy-tags UpdateType: Mutable Type: List ItemType: Tag DuplicatesAllowed: False .PARAMETER DeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default. To keep a resource when its stack is deleted, specify Retain for that resource. You can use retain for any resource. For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER UpdateReplacePolicy Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation. When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters. If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update. Recreating the resource generates a new physical ID. AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource. By default, AWS CloudFormation then deletes the old resource. Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource. For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance. You can apply the UpdateReplacePolicy attribute to any resource. UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID. For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one. The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance. The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference. For more information on resource update behavior, see Update Behaviors of Stack Resources. The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets. Note Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources. Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots. UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope. UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates. Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER DependsOn With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created. .PARAMETER Metadata The Metadata attribute enables you to associate structured data with a resource. By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration. In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values. This will be returned when describing the resource using AWS CLI. .PARAMETER UpdatePolicy Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource. AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group. You must use the "Add-UpdatePolicy" function or the [UpdatePolicy] class here. .PARAMETER Condition Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned. .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallFirewallPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] [object] $FirewallPolicyName, [parameter(Mandatory = $true)] $FirewallPolicy, [parameter(Mandatory = $false)] [object] $Description, [TransformTag()] [object] [parameter(Mandatory = $false)] $Tags, [parameter()] [DeletionPolicy] $DeletionPolicy, [parameter()] [UpdateReplacePolicy] $UpdateReplacePolicy, [parameter(Mandatory = $false)] [string[]] $DependsOn, [parameter(Mandatory = $false)] [VSJson] $Metadata, [parameter(Mandatory = $false)] [UpdatePolicy] $UpdatePolicy, [parameter(Mandatory = $false)] [string] $Condition ) Process { $obj = [NetworkFirewallFirewallPolicy]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'New-VSNetworkFirewallFirewallPolicy' function New-VSNetworkFirewallLoggingConfiguration { <# .SYNOPSIS Adds an AWS::NetworkFirewall::LoggingConfiguration resource to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::LoggingConfiguration resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-loggingconfiguration.html .PARAMETER LogicalId The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance. .PARAMETER FirewallName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-loggingconfiguration.html#cfn-networkfirewall-loggingconfiguration-firewallname UpdateType: Immutable PrimitiveType: String .PARAMETER FirewallArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-loggingconfiguration.html#cfn-networkfirewall-loggingconfiguration-firewallarn UpdateType: Immutable PrimitiveType: String .PARAMETER LoggingConfiguration Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-loggingconfiguration.html#cfn-networkfirewall-loggingconfiguration-loggingconfiguration UpdateType: Mutable Type: LoggingConfiguration .PARAMETER DeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default. To keep a resource when its stack is deleted, specify Retain for that resource. You can use retain for any resource. For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER UpdateReplacePolicy Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation. When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters. If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update. Recreating the resource generates a new physical ID. AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource. By default, AWS CloudFormation then deletes the old resource. Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource. For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance. You can apply the UpdateReplacePolicy attribute to any resource. UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID. For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one. The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance. The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference. For more information on resource update behavior, see Update Behaviors of Stack Resources. The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets. Note Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources. Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots. UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope. UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates. Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER DependsOn With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created. .PARAMETER Metadata The Metadata attribute enables you to associate structured data with a resource. By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration. In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values. This will be returned when describing the resource using AWS CLI. .PARAMETER UpdatePolicy Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource. AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group. You must use the "Add-UpdatePolicy" function or the [UpdatePolicy] class here. .PARAMETER Condition Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned. .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallLoggingConfiguration])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $false)] [object] $FirewallName, [parameter(Mandatory = $true)] [object] $FirewallArn, [parameter(Mandatory = $true)] $LoggingConfiguration, [parameter()] [DeletionPolicy] $DeletionPolicy, [parameter()] [UpdateReplacePolicy] $UpdateReplacePolicy, [parameter(Mandatory = $false)] [string[]] $DependsOn, [parameter(Mandatory = $false)] [VSJson] $Metadata, [parameter(Mandatory = $false)] [UpdatePolicy] $UpdatePolicy, [parameter(Mandatory = $false)] [string] $Condition ) Process { $obj = [NetworkFirewallLoggingConfiguration]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'New-VSNetworkFirewallLoggingConfiguration' function New-VSNetworkFirewallRuleGroup { <# .SYNOPSIS Adds an AWS::NetworkFirewall::RuleGroup resource to the template. .DESCRIPTION Adds an AWS::NetworkFirewall::RuleGroup resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html .PARAMETER LogicalId The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template. Use the logical name to reference the resource in other parts of the template. For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance. .PARAMETER RuleGroupName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-rulegroupname UpdateType: Immutable PrimitiveType: String .PARAMETER RuleGroup Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-rulegroup UpdateType: Mutable Type: RuleGroup .PARAMETER Type Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-type UpdateType: Immutable PrimitiveType: String .PARAMETER Capacity Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-capacity UpdateType: Immutable PrimitiveType: Integer .PARAMETER Description Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-description UpdateType: Mutable PrimitiveType: String .PARAMETER Tags Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-rulegroup.html#cfn-networkfirewall-rulegroup-tags UpdateType: Mutable Type: List ItemType: Tag DuplicatesAllowed: False .PARAMETER DeletionPolicy With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted. You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default. To keep a resource when its stack is deleted, specify Retain for that resource. You can use retain for any resource. For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER UpdateReplacePolicy Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation. When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters. If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update. Recreating the resource generates a new physical ID. AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource. By default, AWS CloudFormation then deletes the old resource. Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource. For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance. You can apply the UpdateReplacePolicy attribute to any resource. UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID. For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one. The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance. The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference. For more information on resource update behavior, see Update Behaviors of Stack Resources. The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets. Note Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources. Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots. UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope. UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates. Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update. You must use one of the following options: "Delete","Retain","Snapshot" .PARAMETER DependsOn With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute. This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created. .PARAMETER Metadata The Metadata attribute enables you to associate structured data with a resource. By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration. In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values. This will be returned when describing the resource using AWS CLI. .PARAMETER UpdatePolicy Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource. AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group. You must use the "Add-UpdatePolicy" function or the [UpdatePolicy] class here. .PARAMETER Condition Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned. .FUNCTIONALITY Vaporshell #> [OutputType([NetworkFirewallRuleGroup])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] [object] $RuleGroupName, [parameter(Mandatory = $false)] $RuleGroup, [parameter(Mandatory = $true)] [object] $Type, [parameter(Mandatory = $true)] [object] $Capacity, [parameter(Mandatory = $false)] [object] $Description, [TransformTag()] [object] [parameter(Mandatory = $false)] $Tags, [parameter()] [DeletionPolicy] $DeletionPolicy, [parameter()] [UpdateReplacePolicy] $UpdateReplacePolicy, [parameter(Mandatory = $false)] [string[]] $DependsOn, [parameter(Mandatory = $false)] [VSJson] $Metadata, [parameter(Mandatory = $false)] [UpdatePolicy] $UpdatePolicy, [parameter(Mandatory = $false)] [string] $Condition ) Process { $obj = [NetworkFirewallRuleGroup]::new($PSBoundParameters) Write-Debug "$($MyInvocation.MyCommand) PSBoundParameters:`n$($PSBoundParameters | ConvertTo-Json -Depth 20 | Format-Json)" Write-Verbose "Resulting object from $($MyInvocation.MyCommand): `n$($obj.ToJson() | Format-Json)" $obj } } Export-ModuleMember -Function 'New-VSNetworkFirewallRuleGroup' |