Public/Resource Property Types/Add-VSCloudFrontDistributionDefaultCacheBehavior.ps1
function Add-VSCloudFrontDistributionDefaultCacheBehavior { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.DefaultCacheBehavior resource property to the template .DESCRIPTION Adds an AWS::CloudFront::Distribution.DefaultCacheBehavior resource property to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html .PARAMETER Compress Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-compress PrimitiveType: Boolean UpdateType: Mutable .PARAMETER AllowedMethods PrimitiveItemType: String Type: List Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-allowedmethods UpdateType: Mutable .PARAMETER CachedMethods PrimitiveItemType: String Type: List Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachedmethods UpdateType: Mutable .PARAMETER LambdaFunctionAssociations Type: List Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations ItemType: LambdaFunctionAssociation UpdateType: Mutable .PARAMETER SmoothStreaming Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming PrimitiveType: Boolean UpdateType: Mutable .PARAMETER TargetOriginId Required: True Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid PrimitiveType: String UpdateType: Mutable .PARAMETER ViewerProtocolPolicy Required: True Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy PrimitiveType: String UpdateType: Mutable .PARAMETER ForwardedValues Type: ForwardedValues Required: True Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues UpdateType: Mutable .PARAMETER MinTTL Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-minttl PrimitiveType: Double UpdateType: Mutable .PARAMETER MaxTTL Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-maxttl PrimitiveType: Double UpdateType: Mutable .PARAMETER TrustedSigners PrimitiveItemType: String Type: List Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners UpdateType: Mutable .PARAMETER DefaultTTL Required: False Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-defaultttl PrimitiveType: Double UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType('Vaporshell.Resource.CloudFront.Distribution.DefaultCacheBehavior')] [cmdletbinding()] Param ( [parameter(Mandatory = $false)] [System.Boolean] $Compress, [parameter(Mandatory = $false)] $AllowedMethods, [parameter(Mandatory = $false)] $CachedMethods, [parameter(Mandatory = $false)] [ValidateScript( { $allowedTypes = "Vaporshell.Resource.CloudFront.Distribution.LambdaFunctionAssociation" 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 ", ").")) } })] $LambdaFunctionAssociations, [parameter(Mandatory = $false)] [System.Boolean] $SmoothStreaming, [parameter(Mandatory = $true)] [ValidateScript( { $allowedTypes = "System.String","Vaporshell.Function" if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") { $true } else { $PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ").")) } })] $TargetOriginId, [parameter(Mandatory = $true)] [ValidateScript( { $allowedTypes = "System.String","Vaporshell.Function" if ([string]$($_.PSTypeNames) -match "($(($allowedTypes|ForEach-Object{[RegEx]::Escape($_)}) -join '|'))") { $true } else { $PSCmdlet.ThrowTerminatingError((New-VSError -String "This parameter only accepts the following types: $($allowedTypes -join ", "). The current types of the value are: $($_.PSTypeNames -join ", ").")) } })] $ViewerProtocolPolicy, [parameter(Mandatory = $true)] $ForwardedValues, [parameter(Mandatory = $false)] [System.Double] $MinTTL, [parameter(Mandatory = $false)] [System.Double] $MaxTTL, [parameter(Mandatory = $false)] $TrustedSigners, [parameter(Mandatory = $false)] [System.Double] $DefaultTTL ) Begin { $obj = [PSCustomObject]@{} } Process { foreach ($key in $PSBoundParameters.Keys) { $obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key } } End { $obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.CloudFront.Distribution.DefaultCacheBehavior' } } |