VaporShell.CloudFront.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-VSCloudFrontCachePolicyCachePolicyConfig { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy.CachePolicyConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy.CachePolicyConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER DefaultTTL Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-defaultttl UpdateType: Mutable PrimitiveType: Double .PARAMETER MaxTTL Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-maxttl UpdateType: Mutable PrimitiveType: Double .PARAMETER MinTTL Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-minttl UpdateType: Mutable PrimitiveType: Double .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-name UpdateType: Mutable PrimitiveType: String .PARAMETER ParametersInCacheKeyAndForwardedToOrigin Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cachepolicyconfig.html#cfn-cloudfront-cachepolicy-cachepolicyconfig-parametersincachekeyandforwardedtoorigin UpdateType: Mutable Type: ParametersInCacheKeyAndForwardedToOrigin .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCachePolicyCachePolicyConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $true)] [object] $DefaultTTL, [parameter(Mandatory = $true)] [object] $MaxTTL, [parameter(Mandatory = $true)] [object] $MinTTL, [parameter(Mandatory = $true)] [object] $Name, [parameter(Mandatory = $true)] $ParametersInCacheKeyAndForwardedToOrigin ) Process { $obj = [CloudFrontCachePolicyCachePolicyConfig]::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-VSCloudFrontCachePolicyCachePolicyConfig' function Add-VSCloudFrontCachePolicyCookiesConfig { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy.CookiesConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy.CookiesConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html .PARAMETER CookieBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html#cfn-cloudfront-cachepolicy-cookiesconfig-cookiebehavior UpdateType: Mutable PrimitiveType: String .PARAMETER Cookies Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-cookiesconfig.html#cfn-cloudfront-cachepolicy-cookiesconfig-cookies UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCachePolicyCookiesConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $CookieBehavior, [parameter(Mandatory = $false)] $Cookies ) Process { $obj = [CloudFrontCachePolicyCookiesConfig]::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-VSCloudFrontCachePolicyCookiesConfig' function Add-VSCloudFrontCachePolicyHeadersConfig { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy.HeadersConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy.HeadersConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html .PARAMETER HeaderBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html#cfn-cloudfront-cachepolicy-headersconfig-headerbehavior UpdateType: Mutable PrimitiveType: String .PARAMETER Headers Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-headersconfig.html#cfn-cloudfront-cachepolicy-headersconfig-headers UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCachePolicyHeadersConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $HeaderBehavior, [parameter(Mandatory = $false)] $Headers ) Process { $obj = [CloudFrontCachePolicyHeadersConfig]::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-VSCloudFrontCachePolicyHeadersConfig' function Add-VSCloudFrontCachePolicyParametersInCacheKeyAndForwardedToOrigin { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy.ParametersInCacheKeyAndForwardedToOrigin resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy.ParametersInCacheKeyAndForwardedToOrigin resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html .PARAMETER CookiesConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-cookiesconfig UpdateType: Mutable Type: CookiesConfig .PARAMETER EnableAcceptEncodingBrotli Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-enableacceptencodingbrotli UpdateType: Mutable PrimitiveType: Boolean .PARAMETER EnableAcceptEncodingGzip Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-enableacceptencodinggzip UpdateType: Mutable PrimitiveType: Boolean .PARAMETER HeadersConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-headersconfig UpdateType: Mutable Type: HeadersConfig .PARAMETER QueryStringsConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin.html#cfn-cloudfront-cachepolicy-parametersincachekeyandforwardedtoorigin-querystringsconfig UpdateType: Mutable Type: QueryStringsConfig .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCachePolicyParametersInCacheKeyAndForwardedToOrigin])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $CookiesConfig, [parameter(Mandatory = $false)] [object] $EnableAcceptEncodingBrotli, [parameter(Mandatory = $true)] [object] $EnableAcceptEncodingGzip, [parameter(Mandatory = $true)] $HeadersConfig, [parameter(Mandatory = $true)] $QueryStringsConfig ) Process { $obj = [CloudFrontCachePolicyParametersInCacheKeyAndForwardedToOrigin]::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-VSCloudFrontCachePolicyParametersInCacheKeyAndForwardedToOrigin' function Add-VSCloudFrontCachePolicyQueryStringsConfig { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy.QueryStringsConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy.QueryStringsConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html .PARAMETER QueryStringBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html#cfn-cloudfront-cachepolicy-querystringsconfig-querystringbehavior UpdateType: Mutable PrimitiveType: String .PARAMETER QueryStrings Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html#cfn-cloudfront-cachepolicy-querystringsconfig-querystrings UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCachePolicyQueryStringsConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $QueryStringBehavior, [parameter(Mandatory = $false)] $QueryStrings ) Process { $obj = [CloudFrontCachePolicyQueryStringsConfig]::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-VSCloudFrontCachePolicyQueryStringsConfig' function Add-VSCloudFrontCloudFrontOriginAccessIdentityCloudFrontOriginAccessIdentityConfig { <# .SYNOPSIS Adds an AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig resource property to the template. Origin access identity configuration. Send a GET request to the /CloudFront API version/CloudFront/identity ID/config resource. .DESCRIPTION Adds an AWS::CloudFront::CloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfig resource property to the template. Origin access identity configuration. Send a GET request to the /CloudFront API version/CloudFront/identity ID/config resource. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html .PARAMETER Comment Any comments you want to include about the origin access identity. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig-comment UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontCloudFrontOriginAccessIdentityCloudFrontOriginAccessIdentityConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Comment ) Process { $obj = [CloudFrontCloudFrontOriginAccessIdentityCloudFrontOriginAccessIdentityConfig]::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-VSCloudFrontCloudFrontOriginAccessIdentityCloudFrontOriginAccessIdentityConfig' function Add-VSCloudFrontDistributionCacheBehavior { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.CacheBehavior resource property to the template. A complex type that describes how CloudFront processes requests. .DESCRIPTION Adds an AWS::CloudFront::Distribution.CacheBehavior resource property to the template. A complex type that describes how CloudFront processes requests. You must create at least as many cache behaviors (including the default cache behavior as you have origins if you want CloudFront to distribute objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used. For the current limit on the number of cache behaviors that you can add to a distribution, see Amazon CloudFront Limits: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_cloudfront in the *AWS General Reference*. If you don't want to specify any cache behaviors, include only an empty CacheBehaviors element. Don't include an empty CacheBehavior element, or CloudFront returns a MalformedXML error. To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty CacheBehaviors element. To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution. For more information about cache behaviors, see Cache Behaviors: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior in the *Amazon CloudFront Developer Guide*. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html .PARAMETER Compress Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-compress UpdateType: Mutable PrimitiveType: Boolean .PARAMETER FunctionAssociations + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-functionassociations UpdateType: Mutable Type: List ItemType: FunctionAssociation DuplicatesAllowed: True .PARAMETER LambdaFunctionAssociations A complex type that contains zero or more Lambda function associations for a cache behavior. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-lambdafunctionassociations UpdateType: Mutable Type: List ItemType: LambdaFunctionAssociation DuplicatesAllowed: True .PARAMETER TargetOriginId The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior in your distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-targetoriginid UpdateType: Mutable PrimitiveType: String .PARAMETER ViewerProtocolPolicy The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options: + allow-all: Viewers can use HTTP or HTTPS. + redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 Moved Permanently to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL. + https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 Forbidden. For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html in the *Amazon CloudFront Developer Guide*. The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-viewerprotocolpolicy UpdateType: Mutable PrimitiveType: String .PARAMETER ResponseHeadersPolicyId + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-responseheaderspolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER RealtimeLogConfigArn + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-realtimelogconfigarn UpdateType: Mutable PrimitiveType: String .PARAMETER TrustedSigners Specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify a list of AWS account IDs. For more information, see Serving Private Content through CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedsigners UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER DefaultTTL The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-defaultttl UpdateType: Mutable PrimitiveType: Double .PARAMETER FieldLevelEncryptionId The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for a cache behavior or for the default cache behavior in your distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-fieldlevelencryptionid UpdateType: Mutable PrimitiveType: String .PARAMETER TrustedKeyGroups + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-trustedkeygroups UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER AllowedMethods A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: + CloudFront forwards only GET and HEAD requests. + CloudFront forwards only GET, HEAD, and OPTIONS requests. + CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-allowedmethods UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER PathPattern The pattern for example, images/*.jpg that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. You can optionally include a slash / at the beginning of the path pattern. For example, /images/*.jpg. CloudFront behavior is the same with or without the leading /. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior. For more information, see Path Pattern: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesPathPattern in the * Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-pathpattern UpdateType: Mutable PrimitiveType: String .PARAMETER CachedMethods A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: + CloudFront caches responses to GET and HEAD requests. + CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachedmethods UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER SmoothStreaming Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-smoothstreaming UpdateType: Mutable PrimitiveType: Boolean .PARAMETER ForwardedValues A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-forwardedvalues UpdateType: Mutable Type: ForwardedValues .PARAMETER OriginRequestPolicyId + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-originrequestpolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER MinTTL The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the * Amazon CloudFront Developer Guide*. You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin under Headers, if you specify 1 for Quantity and * for Name. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-minttl UpdateType: Mutable PrimitiveType: Double .PARAMETER CachePolicyId + CacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-cachepolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER MaxTTL The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cachebehavior.html#cfn-cloudfront-distribution-cachebehavior-maxttl UpdateType: Mutable PrimitiveType: Double .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionCacheBehavior])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Compress, [parameter(Mandatory = $false)] [object] $FunctionAssociations, [parameter(Mandatory = $false)] [object] $LambdaFunctionAssociations, [parameter(Mandatory = $true)] [object] $TargetOriginId, [parameter(Mandatory = $true)] [object] $ViewerProtocolPolicy, [parameter(Mandatory = $false)] [object] $ResponseHeadersPolicyId, [parameter(Mandatory = $false)] [object] $RealtimeLogConfigArn, [parameter(Mandatory = $false)] $TrustedSigners, [parameter(Mandatory = $false)] [object] $DefaultTTL, [parameter(Mandatory = $false)] [object] $FieldLevelEncryptionId, [parameter(Mandatory = $false)] $TrustedKeyGroups, [parameter(Mandatory = $false)] $AllowedMethods, [parameter(Mandatory = $true)] [object] $PathPattern, [parameter(Mandatory = $false)] $CachedMethods, [parameter(Mandatory = $false)] [object] $SmoothStreaming, [parameter(Mandatory = $false)] $ForwardedValues, [parameter(Mandatory = $false)] [object] $OriginRequestPolicyId, [parameter(Mandatory = $false)] [object] $MinTTL, [parameter(Mandatory = $false)] [object] $CachePolicyId, [parameter(Mandatory = $false)] [object] $MaxTTL ) Process { $obj = [CloudFrontDistributionCacheBehavior]::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-VSCloudFrontDistributionCacheBehavior' function Add-VSCloudFrontDistributionCookies { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.Cookies resource property to the template. A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html in the *Amazon CloudFront Developer Guide*. .DESCRIPTION Adds an AWS::CloudFront::Distribution.Cookies resource property to the template. A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html in the *Amazon CloudFront Developer Guide*. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html .PARAMETER WhitelistedNames Required if you specify whitelist for the value of Forward. A complex type that specifies how many different cookies you want CloudFront to forward to the origin for this cache behavior and, if you want to forward selected cookies, the names of those cookies. If you specify all or none for the value of Forward, omit WhitelistedNames. If you change the value of Forward from whitelist to all or none and you don't delete the WhitelistedNames element and its child elements, CloudFront deletes them automatically. For the current limit on the number of cookie names that you can whitelist for each cache behavior, see CloudFront Limits: https://docs.aws.amazon.com/general/latest/gr/xrefaws_service_limits.html#limits_cloudfront in the *AWS General Reference*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-whitelistednames UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER Forward Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the WhitelistedNames complex type. Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the Forward element. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-cookies.html#cfn-cloudfront-distribution-cookies-forward UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionCookies])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $WhitelistedNames, [parameter(Mandatory = $true)] [object] $Forward ) Process { $obj = [CloudFrontDistributionCookies]::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-VSCloudFrontDistributionCookies' function Add-VSCloudFrontDistributionCustomErrorResponse { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.CustomErrorResponse resource property to the template. A complex type that controls: .DESCRIPTION Adds an AWS::CloudFront::Distribution.CustomErrorResponse resource property to the template. A complex type that controls: + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer. + How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html in the *Amazon CloudFront Developer Guide*. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html .PARAMETER ResponseCode The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example: + Some Internet devices some firewalls and corporate proxies, for example intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute 200, the response typically won't be intercepted. + If you don't care about distinguishing among different client errors or server errors, you can specify 400 or 500 as the ResponseCode for all 4xx or 5xx errors. + You might want to return a 200 status code OK and static website so your customers don't know that your website is down. If you specify a value for ResponseCode, you must also specify a value for ResponsePagePath. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsecode UpdateType: Mutable PrimitiveType: Integer .PARAMETER ErrorCachingMinTTL The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode. When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available. For more information, see Customizing Error Responses: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcachingminttl UpdateType: Mutable PrimitiveType: Double .PARAMETER ErrorCode The HTTP status code for which you want to specify a custom error page and/or a caching duration. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-errorcode UpdateType: Mutable PrimitiveType: Integer .PARAMETER ResponsePagePath The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ErrorCode, for example, /4xx-errors/403-forbidden.html. If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true: + The value of PathPattern matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named /4xx-errors. Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, /4xx-errors/*. + The value of TargetOriginId specifies the value of the ID element for the origin that contains your custom error pages. If you specify a value for ResponsePagePath, you must also specify a value for ResponseCode. We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customerrorresponse.html#cfn-cloudfront-distribution-customerrorresponse-responsepagepath UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionCustomErrorResponse])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $ResponseCode, [parameter(Mandatory = $false)] [object] $ErrorCachingMinTTL, [parameter(Mandatory = $true)] [object] $ErrorCode, [parameter(Mandatory = $false)] [object] $ResponsePagePath ) Process { $obj = [CloudFrontDistributionCustomErrorResponse]::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-VSCloudFrontDistributionCustomErrorResponse' function Add-VSCloudFrontDistributionCustomOriginConfig { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.CustomOriginConfig resource property to the template. A custom origin or an Amazon S3 bucket configured as a website endpoint. .DESCRIPTION Adds an AWS::CloudFront::Distribution.CustomOriginConfig resource property to the template. A custom origin or an Amazon S3 bucket configured as a website endpoint. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html .PARAMETER OriginReadTimeout You can create a custom origin read timeout. All timeout units are in seconds. The default origin read timeout is 30 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 4 seconds; the maximum is 60 seconds. If you need to increase the maximum time limit, contact the AWS Support Center: https://console.aws.amazon.com/support/home#/. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originreadtimeout UpdateType: Mutable PrimitiveType: Integer .PARAMETER HTTPSPort The HTTPS port the custom origin listens on. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpsport UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginKeepaliveTimeout You can create a custom keep-alive timeout. All timeout units are in seconds. The default keep-alive timeout is 5 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 1 second; the maximum is 60 seconds. If you need to increase the maximum time limit, contact the AWS Support Center: https://console.aws.amazon.com/support/home#/. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originkeepalivetimeout UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginSSLProtocols The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originsslprotocols UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER HTTPPort The HTTP port the custom origin listens on. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-httpport UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginProtocolPolicy The origin protocol policy to apply to your origin. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-customoriginconfig.html#cfn-cloudfront-distribution-customoriginconfig-originprotocolpolicy UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionCustomOriginConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $OriginReadTimeout, [parameter(Mandatory = $false)] [object] $HTTPSPort, [parameter(Mandatory = $false)] [object] $OriginKeepaliveTimeout, [parameter(Mandatory = $false)] $OriginSSLProtocols, [parameter(Mandatory = $false)] [object] $HTTPPort, [parameter(Mandatory = $true)] [object] $OriginProtocolPolicy ) Process { $obj = [CloudFrontDistributionCustomOriginConfig]::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-VSCloudFrontDistributionCustomOriginConfig' function Add-VSCloudFrontDistributionDefaultCacheBehavior { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.DefaultCacheBehavior resource property to the template. A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior. .DESCRIPTION Adds an AWS::CloudFront::Distribution.DefaultCacheBehavior resource property to the template. A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html .PARAMETER Compress Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-compress UpdateType: Mutable PrimitiveType: Boolean .PARAMETER FunctionAssociations + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-functionassociations UpdateType: Mutable Type: List ItemType: FunctionAssociation DuplicatesAllowed: True .PARAMETER LambdaFunctionAssociations A complex type that contains zero or more Lambda function associations for a cache behavior. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-lambdafunctionassociations UpdateType: Mutable Type: List ItemType: LambdaFunctionAssociation DuplicatesAllowed: True .PARAMETER TargetOriginId The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior in your distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-targetoriginid UpdateType: Mutable PrimitiveType: String .PARAMETER ViewerProtocolPolicy The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options: + allow-all: Viewers can use HTTP or HTTPS. + redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 Moved Permanently to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL. + https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 Forbidden. For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/SecureConnections.html in the *Amazon CloudFront Developer Guide*. The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-viewerprotocolpolicy UpdateType: Mutable PrimitiveType: String .PARAMETER ResponseHeadersPolicyId + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-responseheaderspolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER RealtimeLogConfigArn + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-realtimelogconfigarn UpdateType: Mutable PrimitiveType: String .PARAMETER TrustedSigners Specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin, specify a list of AWS account IDs. For more information, see Serving Private Content through CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html in the * Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedsigners UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER DefaultTTL The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-defaultttl UpdateType: Mutable PrimitiveType: Double .PARAMETER FieldLevelEncryptionId The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for a cache behavior or for the default cache behavior in your distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-fieldlevelencryptionid UpdateType: Mutable PrimitiveType: String .PARAMETER TrustedKeyGroups + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-trustedkeygroups UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER AllowedMethods A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices: + CloudFront forwards only GET and HEAD requests. + CloudFront forwards only GET, HEAD, and OPTIONS requests. + CloudFront forwards GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests. If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can't perform operations that you don't want them to. For example, you might not want users to have permissions to delete objects from your origin. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-allowedmethods UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER CachedMethods A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices: + CloudFront caches responses to GET and HEAD requests. + CloudFront caches responses to GET, HEAD, and OPTIONS requests. If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachedmethods UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER SmoothStreaming Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-smoothstreaming UpdateType: Mutable PrimitiveType: Boolean .PARAMETER ForwardedValues A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-forwardedvalues UpdateType: Mutable Type: ForwardedValues .PARAMETER OriginRequestPolicyId + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-originrequestpolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER MinTTL The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin under Headers, if you specify 1 for Quantity and * for Name. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-minttl UpdateType: Mutable PrimitiveType: Double .PARAMETER CachePolicyId + DefaultCacheBehavior: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DefaultCacheBehavior.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-cachepolicyid UpdateType: Mutable PrimitiveType: String .PARAMETER MaxTTL The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache Expiration: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-defaultcachebehavior.html#cfn-cloudfront-distribution-defaultcachebehavior-maxttl UpdateType: Mutable PrimitiveType: Double .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionDefaultCacheBehavior])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Compress, [parameter(Mandatory = $false)] [object] $FunctionAssociations, [parameter(Mandatory = $false)] [object] $LambdaFunctionAssociations, [parameter(Mandatory = $true)] [object] $TargetOriginId, [parameter(Mandatory = $true)] [object] $ViewerProtocolPolicy, [parameter(Mandatory = $false)] [object] $ResponseHeadersPolicyId, [parameter(Mandatory = $false)] [object] $RealtimeLogConfigArn, [parameter(Mandatory = $false)] $TrustedSigners, [parameter(Mandatory = $false)] [object] $DefaultTTL, [parameter(Mandatory = $false)] [object] $FieldLevelEncryptionId, [parameter(Mandatory = $false)] $TrustedKeyGroups, [parameter(Mandatory = $false)] $AllowedMethods, [parameter(Mandatory = $false)] $CachedMethods, [parameter(Mandatory = $false)] [object] $SmoothStreaming, [parameter(Mandatory = $false)] $ForwardedValues, [parameter(Mandatory = $false)] [object] $OriginRequestPolicyId, [parameter(Mandatory = $false)] [object] $MinTTL, [parameter(Mandatory = $false)] [object] $CachePolicyId, [parameter(Mandatory = $false)] [object] $MaxTTL ) Process { $obj = [CloudFrontDistributionDefaultCacheBehavior]::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-VSCloudFrontDistributionDefaultCacheBehavior' function Add-VSCloudFrontDistributionDistributionConfig { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.DistributionConfig resource property to the template. A distribution configuration. .DESCRIPTION Adds an AWS::CloudFront::Distribution.DistributionConfig resource property to the template. A distribution configuration. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html .PARAMETER Logging A complex type that controls whether access logs are written for the distribution. For more information about logging, see Access Logs: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-logging UpdateType: Mutable Type: Logging .PARAMETER Comment Any comments you want to include about the distribution. If you don't want to specify a comment, include an empty Comment element. To delete an existing comment, update the distribution configuration and include an empty Comment element. To add or change a comment, update the distribution configuration and specify the new comment. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER DefaultRootObject The object that you want CloudFront to request from your origin for example, index.html when a viewer requests the root URL for your distribution http://www.example.com instead of an object in your distribution http://www.example.com/product-description.html. Specifying a default root object avoids exposing the contents of your distribution. Specify only the object name, for example, index.html. Don't add a / before the object name. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object. For more information about the default root object, see Creating a Default Root Object: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultrootobject UpdateType: Mutable PrimitiveType: String .PARAMETER Origins A complex type that contains information about origins for this distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origins UpdateType: Mutable Type: List ItemType: Origin DuplicatesAllowed: True .PARAMETER ViewerCertificate A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-viewercertificate UpdateType: Mutable Type: ViewerCertificate .PARAMETER PriceClass The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify PriceClass_All, CloudFront responds to requests for your objects from all CloudFront edge locations. If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance. For more information about price classes, see Choosing the Price Class for a CloudFront Distribution: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PriceClass.html in the *Amazon CloudFront Developer Guide*. For information about CloudFront pricing, including how price classes such as Price Class 100 map to CloudFront regions, see Amazon CloudFront Pricing: http://aws.amazon.com/cloudfront/pricing/. For price class information, scroll down to see the table at the bottom of the page. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-priceclass UpdateType: Mutable PrimitiveType: String .PARAMETER CustomOrigin + DistributionConfig: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DistributionConfig.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customorigin UpdateType: Mutable Type: LegacyCustomOrigin .PARAMETER S3Origin + DistributionConfig: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DistributionConfig.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-s3origin UpdateType: Mutable Type: LegacyS3Origin .PARAMETER DefaultCacheBehavior A complex type that describes the default cache behavior if you don't specify a CacheBehavior element or if files don't match any of the values of PathPattern in CacheBehavior elements. You must create exactly one default cache behavior. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-defaultcachebehavior UpdateType: Mutable Type: DefaultCacheBehavior .PARAMETER CustomErrorResponses A complex type that controls the following: + Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer. + How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-customerrorresponses UpdateType: Mutable Type: List ItemType: CustomErrorResponse DuplicatesAllowed: True .PARAMETER OriginGroups A complex type that contains information about origin groups for this distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-origingroups UpdateType: Mutable Type: OriginGroups .PARAMETER Enabled From this field, you can enable or disable the selected distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-enabled UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Aliases A complex type that contains information about CNAMEs alternate domain names, if any, for this distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER IPV6Enabled If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify true. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution. In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the IpAddress parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content or restrict access but not by IP address, you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html in the *Amazon CloudFront Developer Guide*. If you're using an Amazon Route 53 alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true: + You enable IPv6 for the distribution + You're using alternate domain names in the URLs for your objects For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html in the *Amazon Route 53 Developer Guide*. If you created a CNAME resource record set, either with Amazon Route 53 or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-ipv6enabled UpdateType: Mutable PrimitiveType: Boolean .PARAMETER CNAMEs + DistributionConfig: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DistributionConfig.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cnames UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER WebACLId A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a. AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code Forbidden. You can also configure CloudFront to return a custom error page when a request is blocked. For more information about AWS WAF, see the AWS WAF Developer Guide: https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-webaclid UpdateType: Mutable PrimitiveType: String .PARAMETER HttpVersion Optional Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version. For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support Server Name Identification SNI. In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2. For more information, do an Internet search for "http/2 optimization." Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-httpversion UpdateType: Mutable PrimitiveType: String .PARAMETER Restrictions A complex type that identifies ways in which you want to restrict distribution of your content. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions UpdateType: Mutable Type: Restrictions .PARAMETER CacheBehaviors A complex type that contains zero or more CacheBehavior elements. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-cachebehaviors UpdateType: Mutable Type: List ItemType: CacheBehavior DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionDistributionConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Logging, [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $false)] [object] $DefaultRootObject, [parameter(Mandatory = $false)] [object] $Origins, [parameter(Mandatory = $false)] $ViewerCertificate, [parameter(Mandatory = $false)] [object] $PriceClass, [parameter(Mandatory = $false)] $CustomOrigin, [parameter(Mandatory = $false)] $S3Origin, [parameter(Mandatory = $false)] $DefaultCacheBehavior, [parameter(Mandatory = $false)] [object] $CustomErrorResponses, [parameter(Mandatory = $false)] $OriginGroups, [parameter(Mandatory = $true)] [object] $Enabled, [parameter(Mandatory = $false)] $Aliases, [parameter(Mandatory = $false)] [object] $IPV6Enabled, [parameter(Mandatory = $false)] $CNAMEs, [parameter(Mandatory = $false)] [object] $WebACLId, [parameter(Mandatory = $false)] [object] $HttpVersion, [parameter(Mandatory = $false)] $Restrictions, [parameter(Mandatory = $false)] [object] $CacheBehaviors ) Process { $obj = [CloudFrontDistributionDistributionConfig]::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-VSCloudFrontDistributionDistributionConfig' function Add-VSCloudFrontDistributionForwardedValues { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.ForwardedValues resource property to the template. A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers. .DESCRIPTION Adds an AWS::CloudFront::Distribution.ForwardedValues resource property to the template. A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html .PARAMETER Cookies A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Cookies.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-cookies UpdateType: Mutable Type: Cookies .PARAMETER Headers A complex type that specifies the Headers, if any, that you want CloudFront to forward to the origin for this cache behavior whitelisted headers. For the headers that you specify, CloudFront also caches separate versions of a specified object that is based on the header values in viewer requests. For more information, see Caching Content Based on Request Headers: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-headers UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER QueryString Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of QueryString and on the values that you specify for QueryStringCacheKeys, if any: If you specify true for QueryString and you don't specify any values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin. If you specify true for QueryString and you specify one or more values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify. If you specify false for QueryString, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters. For more information, see Configuring CloudFront to Cache Based on Query String Parameters: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/QueryStringParameters.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystring UpdateType: Mutable PrimitiveType: Boolean .PARAMETER QueryStringCacheKeys A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystringcachekeys UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionForwardedValues])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Cookies, [parameter(Mandatory = $false)] $Headers, [parameter(Mandatory = $true)] [object] $QueryString, [parameter(Mandatory = $false)] $QueryStringCacheKeys ) Process { $obj = [CloudFrontDistributionForwardedValues]::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-VSCloudFrontDistributionForwardedValues' function Add-VSCloudFrontDistributionFunctionAssociation { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.FunctionAssociation resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Distribution.FunctionAssociation resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html .PARAMETER FunctionARN Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-functionarn UpdateType: Mutable PrimitiveType: String .PARAMETER EventType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#cfn-cloudfront-distribution-functionassociation-eventtype UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionFunctionAssociation])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $FunctionARN, [parameter(Mandatory = $false)] [object] $EventType ) Process { $obj = [CloudFrontDistributionFunctionAssociation]::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-VSCloudFrontDistributionFunctionAssociation' function Add-VSCloudFrontDistributionGeoRestriction { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.GeoRestriction resource property to the template. A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions property from your stack template. .DESCRIPTION Adds an AWS::CloudFront::Distribution.GeoRestriction resource property to the template. A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions property from your stack template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html .PARAMETER Locations A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content whitelist or not distribute your content blacklist. The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the *International Organization for Standardization* website. You can also refer to the country list on the CloudFront console, which includes both country names and codes. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-locations UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER RestrictionType The method that you want to use to restrict distribution of your content by country: + none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. + blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content. + whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html#cfn-cloudfront-distribution-georestriction-restrictiontype UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionGeoRestriction])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Locations, [parameter(Mandatory = $true)] [object] $RestrictionType ) Process { $obj = [CloudFrontDistributionGeoRestriction]::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-VSCloudFrontDistributionGeoRestriction' function Add-VSCloudFrontDistributionLambdaFunctionAssociation { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.LambdaFunctionAssociation resource property to the template. A complex type that contains a Lambda function association. .DESCRIPTION Adds an AWS::CloudFront::Distribution.LambdaFunctionAssociation resource property to the template. A complex type that contains a Lambda function association. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html .PARAMETER IncludeBody A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html in the Amazon CloudFront Developer Guide. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-includebody UpdateType: Mutable PrimitiveType: Boolean .PARAMETER EventType Specifies the event type that triggers a Lambda function invocation. You can specify the following values: + viewer-request: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache. + origin-request: The function executes only when CloudFront forwards a request to your origin. When the requested object is in the edge cache, the function doesn't execute. + origin-response: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute. + viewer-response: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache. If the origin returns an HTTP status code other than HTTP 200 OK, the function doesn't execute. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype UpdateType: Mutable PrimitiveType: String .PARAMETER LambdaFunctionARN The ARN of the Lambda function. You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionLambdaFunctionAssociation])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $IncludeBody, [parameter(Mandatory = $false)] [object] $EventType, [parameter(Mandatory = $false)] [object] $LambdaFunctionARN ) Process { $obj = [CloudFrontDistributionLambdaFunctionAssociation]::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-VSCloudFrontDistributionLambdaFunctionAssociation' function Add-VSCloudFrontDistributionLegacyCustomOrigin { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.LegacyCustomOrigin resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Distribution.LegacyCustomOrigin resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html .PARAMETER HTTPSPort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpsport UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginSSLProtocols Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originsslprotocols UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER DNSName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-dnsname UpdateType: Mutable PrimitiveType: String .PARAMETER HTTPPort Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-httpport UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginProtocolPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html#cfn-cloudfront-distribution-legacycustomorigin-originprotocolpolicy UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionLegacyCustomOrigin])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $HTTPSPort, [parameter(Mandatory = $true)] $OriginSSLProtocols, [parameter(Mandatory = $true)] [object] $DNSName, [parameter(Mandatory = $false)] [object] $HTTPPort, [parameter(Mandatory = $true)] [object] $OriginProtocolPolicy ) Process { $obj = [CloudFrontDistributionLegacyCustomOrigin]::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-VSCloudFrontDistributionLegacyCustomOrigin' function Add-VSCloudFrontDistributionLegacyS3Origin { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.LegacyS3Origin resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Distribution.LegacyS3Origin resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html .PARAMETER OriginAccessIdentity Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-originaccessidentity UpdateType: Mutable PrimitiveType: String .PARAMETER DNSName Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html#cfn-cloudfront-distribution-legacys3origin-dnsname UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionLegacyS3Origin])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $OriginAccessIdentity, [parameter(Mandatory = $true)] [object] $DNSName ) Process { $obj = [CloudFrontDistributionLegacyS3Origin]::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-VSCloudFrontDistributionLegacyS3Origin' function Add-VSCloudFrontDistributionLogging { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.Logging resource property to the template. A complex type that controls whether access logs are written for the distribution. .DESCRIPTION Adds an AWS::CloudFront::Distribution.Logging resource property to the template. A complex type that controls whether access logs are written for the distribution. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html .PARAMETER IncludeCookies Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-includecookies UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Bucket The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-bucket UpdateType: Mutable PrimitiveType: String .PARAMETER Prefix An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-logging.html#cfn-cloudfront-distribution-logging-prefix UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionLogging])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $IncludeCookies, [parameter(Mandatory = $true)] [object] $Bucket, [parameter(Mandatory = $false)] [object] $Prefix ) Process { $obj = [CloudFrontDistributionLogging]::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-VSCloudFrontDistributionLogging' function Add-VSCloudFrontDistributionOrigin { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.Origin resource property to the template. A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server, Amazon MediaStore, or other server from which CloudFront gets your files. This can also be an origin group, if you’ve created an origin group. You must specify at least one origin or origin group. .DESCRIPTION Adds an AWS::CloudFront::Distribution.Origin resource property to the template. A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server, Amazon MediaStore, or other server from which CloudFront gets your files. This can also be an origin group, if you’ve created an origin group. You must specify at least one origin or origin group. For the current quota (limit on the number of origins or origin groups that you can specify for a distribution, see Quotas: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html in the *Amazon CloudFront Developer Guide*. **Note** If you use CloudFormation to create a CloudFront distribution and an S3 bucket origin at the same time, the distribution might return HTTP 307 Temporary Redirect responses for up to 24 hours. It can take up to 24 hours for the S3 bucket name to propagate to all AWS Regions. When the propagation is complete, the CloudFront distribution will automatically stop sending these redirect responses; you don’t need to take any action. For more information, see Why am I getting an HTTP 307 Temporary Redirect response from Amazon S3?: http://aws.amazon.com/premiumsupport/knowledge-center/s3-http-307-response/ and Temporary Request Redirection: https://docs.aws.amazon.com/AmazonS3/latest/dev/Redirects.html#TemporaryRedirection. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html .PARAMETER ConnectionTimeout + Origin: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_Origin.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectiontimeout UpdateType: Mutable PrimitiveType: Integer .PARAMETER ConnectionAttempts + Origin: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_Origin.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-connectionattempts UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginCustomHeaders A complex type that contains names and values for the custom headers that you want. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-origincustomheaders UpdateType: Mutable Type: List ItemType: OriginCustomHeader DuplicatesAllowed: True .PARAMETER DomainName **Amazon S3 origins**: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, my-aws-bucket.s3.amazonaws.com. For S3 buckets configured as a static website, use CustomOriginConfig instead. For more information about specifying this value for different types of origins, see Origin Domain Name: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName in the *Amazon CloudFront Developer Guide*. Constraints for Amazon S3 origins: + If you configured Amazon S3 Transfer Acceleration for your bucket, don't specify the s3-accelerate endpoint for DomainName. + If you configured your bucket as a static website, use CustomOriginConfig instead. + The bucket name must be between 3 and 63 characters long inclusive. + The bucket name must contain only lowercase characters, numbers, periods, underscores, and dashes. + The bucket name must not contain adjacent periods. **Custom Origins**: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com. Constraints for custom origins: + DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, dot ., hyphen -, or underscore _ characters. + The name cannot exceed 128 characters. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-domainname UpdateType: Mutable PrimitiveType: String .PARAMETER OriginShield + Origin: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_Origin.html in the *Amazon CloudFront API Reference* Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originshield UpdateType: Mutable Type: OriginShield .PARAMETER S3OriginConfig A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the CustomOriginConfig element instead. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-s3originconfig UpdateType: Mutable Type: S3OriginConfig .PARAMETER OriginPath An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName, for example, example.com/production. Do not include a / at the end of the directory name. For example, suppose you've specified the following values for your distribution: + DomainName: An Amazon S3 bucket named myawsbucket. + OriginPath: /production + CNAME: example.com When a user enters example.com/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/index.html. When a user enters example.com/acme/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/acme/index.html. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-originpath UpdateType: Mutable PrimitiveType: String .PARAMETER Id A unique identifier for the origin or origin group. The value of Id must be unique within the distribution. When you specify the value of TargetOriginId for the default cache behavior or for another cache behavior, you indicate the origin to which you want the cache behavior to route requests by specifying the value of the Id element for that origin. When a request matches the path pattern for that cache behavior, CloudFront routes the request to the specified origin. For more information, see Cache Behavior Settings: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-id UpdateType: Mutable PrimitiveType: String .PARAMETER CustomOriginConfig A complex type that contains information about a custom origin or an Amazon S3 bucket that is configured as a static website. If the origin is an Amazon S3 bucket that is *not* configured as a static website, use the S3OriginConfig element instead. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html#cfn-cloudfront-distribution-origin-customoriginconfig UpdateType: Mutable Type: CustomOriginConfig .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOrigin])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $ConnectionTimeout, [parameter(Mandatory = $false)] [object] $ConnectionAttempts, [parameter(Mandatory = $false)] [object] $OriginCustomHeaders, [parameter(Mandatory = $true)] [object] $DomainName, [parameter(Mandatory = $false)] $OriginShield, [parameter(Mandatory = $false)] $S3OriginConfig, [parameter(Mandatory = $false)] [object] $OriginPath, [parameter(Mandatory = $true)] [object] $Id, [parameter(Mandatory = $false)] $CustomOriginConfig ) Process { $obj = [CloudFrontDistributionOrigin]::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-VSCloudFrontDistributionOrigin' function Add-VSCloudFrontDistributionOriginCustomHeader { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginCustomHeader resource property to the template. A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginCustomHeader resource property to the template. A complex type that contains HeaderName and HeaderValue elements, if any, for this distribution. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html .PARAMETER HeaderValue The value for the header that you specified in the HeaderName field. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headervalue UpdateType: Mutable PrimitiveType: String .PARAMETER HeaderName The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin Web Distributions Only: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html in the * Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origincustomheader.html#cfn-cloudfront-distribution-origincustomheader-headername UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginCustomHeader])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $HeaderValue, [parameter(Mandatory = $true)] [object] $HeaderName ) Process { $obj = [CloudFrontDistributionOriginCustomHeader]::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-VSCloudFrontDistributionOriginCustomHeader' function Add-VSCloudFrontDistributionOriginGroup { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginGroup resource property to the template. An origin group includes two origins (a primary origin and a second origin to failover to and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginGroup resource property to the template. An origin group includes two origins (a primary origin and a second origin to failover to and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html .PARAMETER Id The origin group's ID. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-id UpdateType: Mutable PrimitiveType: String .PARAMETER FailoverCriteria A complex type that contains information about the failover criteria for an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-failovercriteria UpdateType: Mutable Type: OriginGroupFailoverCriteria .PARAMETER Members A complex type that contains information about the origins in an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroup.html#cfn-cloudfront-distribution-origingroup-members UpdateType: Mutable Type: OriginGroupMembers .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginGroup])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Id, [parameter(Mandatory = $true)] $FailoverCriteria, [parameter(Mandatory = $true)] $Members ) Process { $obj = [CloudFrontDistributionOriginGroup]::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-VSCloudFrontDistributionOriginGroup' function Add-VSCloudFrontDistributionOriginGroupFailoverCriteria { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginGroupFailoverCriteria resource property to the template. A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginGroupFailoverCriteria resource property to the template. A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html .PARAMETER StatusCodes The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupfailovercriteria.html#cfn-cloudfront-distribution-origingroupfailovercriteria-statuscodes UpdateType: Mutable Type: StatusCodes .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginGroupFailoverCriteria])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $StatusCodes ) Process { $obj = [CloudFrontDistributionOriginGroupFailoverCriteria]::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-VSCloudFrontDistributionOriginGroupFailoverCriteria' function Add-VSCloudFrontDistributionOriginGroupMember { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginGroupMember resource property to the template. An origin in an origin group. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginGroupMember resource property to the template. An origin in an origin group. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html .PARAMETER OriginId The ID for an origin in an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmember.html#cfn-cloudfront-distribution-origingroupmember-originid UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginGroupMember])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $OriginId ) Process { $obj = [CloudFrontDistributionOriginGroupMember]::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-VSCloudFrontDistributionOriginGroupMember' function Add-VSCloudFrontDistributionOriginGroupMembers { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginGroupMembers resource property to the template. A complex data type for the origins included in an origin group. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginGroupMembers resource property to the template. A complex data type for the origins included in an origin group. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html .PARAMETER Quantity The number of origins in an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-quantity UpdateType: Mutable PrimitiveType: Integer .PARAMETER Items Items origins in an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroupmembers.html#cfn-cloudfront-distribution-origingroupmembers-items UpdateType: Mutable Type: List ItemType: OriginGroupMember DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginGroupMembers])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Quantity, [parameter(Mandatory = $true)] [object] $Items ) Process { $obj = [CloudFrontDistributionOriginGroupMembers]::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-VSCloudFrontDistributionOriginGroupMembers' function Add-VSCloudFrontDistributionOriginGroups { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginGroups resource property to the template. A complex data type for the origin groups specified for a distribution. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginGroups resource property to the template. A complex data type for the origin groups specified for a distribution. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html .PARAMETER Quantity The number of origin groups. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-quantity UpdateType: Mutable PrimitiveType: Integer .PARAMETER Items The items origin groups in a distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origingroups.html#cfn-cloudfront-distribution-origingroups-items UpdateType: Mutable Type: List ItemType: OriginGroup DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginGroups])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Quantity, [parameter(Mandatory = $false)] [object] $Items ) Process { $obj = [CloudFrontDistributionOriginGroups]::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-VSCloudFrontDistributionOriginGroups' function Add-VSCloudFrontDistributionOriginShield { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.OriginShield resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Distribution.OriginShield resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html .PARAMETER OriginShieldRegion Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-originshieldregion UpdateType: Mutable PrimitiveType: String .PARAMETER Enabled Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-enabled UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionOriginShield])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $OriginShieldRegion, [parameter(Mandatory = $false)] [object] $Enabled ) Process { $obj = [CloudFrontDistributionOriginShield]::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-VSCloudFrontDistributionOriginShield' function Add-VSCloudFrontDistributionRestrictions { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.Restrictions resource property to the template. A complex type that identifies ways in which you want to restrict distribution of your content. .DESCRIPTION Adds an AWS::CloudFront::Distribution.Restrictions resource property to the template. A complex type that identifies ways in which you want to restrict distribution of your content. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html .PARAMETER GeoRestriction A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-restrictions property from your stack template. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction UpdateType: Mutable Type: GeoRestriction .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionRestrictions])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $GeoRestriction ) Process { $obj = [CloudFrontDistributionRestrictions]::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-VSCloudFrontDistributionRestrictions' function Add-VSCloudFrontDistributionS3OriginConfig { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.S3OriginConfig resource property to the template. A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the CustomOriginConfig element instead. .DESCRIPTION Adds an AWS::CloudFront::Distribution.S3OriginConfig resource property to the template. A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin or an S3 bucket that is configured as a website endpoint, use the CustomOriginConfig element instead. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html .PARAMETER OriginAccessIdentity The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can *only* access objects in an Amazon S3 bucket through CloudFront. The format of the value is: origin-access-identity/cloudfront/*ID-of-origin-access-identity* where ID-of-origin-access-identity is the value that CloudFront returned in the ID element when you created the origin access identity. If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information about the origin access identity, see Serving Private Content through CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html in the *Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-s3originconfig.html#cfn-cloudfront-distribution-s3originconfig-originaccessidentity UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionS3OriginConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $OriginAccessIdentity ) Process { $obj = [CloudFrontDistributionS3OriginConfig]::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-VSCloudFrontDistributionS3OriginConfig' function Add-VSCloudFrontDistributionStatusCodes { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.StatusCodes resource property to the template. A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin. .DESCRIPTION Adds an AWS::CloudFront::Distribution.StatusCodes resource property to the template. A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html .PARAMETER Quantity The number of status codes. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-quantity UpdateType: Mutable PrimitiveType: Integer .PARAMETER Items The items status codes for an origin group. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-statuscodes.html#cfn-cloudfront-distribution-statuscodes-items UpdateType: Mutable Type: List PrimitiveItemType: Integer DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionStatusCodes])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Quantity, [parameter(Mandatory = $true)] $Items ) Process { $obj = [CloudFrontDistributionStatusCodes]::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-VSCloudFrontDistributionStatusCodes' function Add-VSCloudFrontDistributionViewerCertificate { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution.ViewerCertificate resource property to the template. A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers. .DESCRIPTION Adds an AWS::CloudFront::Distribution.ViewerCertificate resource property to the template. A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers. If the distribution doesn’t use Aliases (also known as alternate domain names or CNAMEs—that is, if the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net—set CloudFrontDefaultCertificate to true and leave all other fields empty. If the distribution uses Aliases (alternate domain names or CNAMEs, use the fields in this type to specify the following settings: + Which viewers the distribution accepts HTTPS connections from: only viewers that support server name indication (SNI: https://en.wikipedia.org/wiki/Server_Name_Indication (recommended, or all viewers including those that don’t support SNI. + To accept HTTPS connections from only viewers that support SNI, set SslSupportMethod to sni-only. This is recommended. Most browsers and clients released after 2010 support SNI. + To accept HTTPS connections from all viewers, including those that don’t support SNI, set SslSupportMethod to vip. This is not recommended, and results in additional monthly charges from CloudFront. + The minimum SSL/TLS protocol version that the distribution can use to communicate with viewers. To specify a minimum version, choose a value for MinimumProtocolVersion. For more information, see Security Policy: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy in the *Amazon CloudFront Developer Guide*. + The location of the SSL/TLS certificate, AWS Certificate Manager (ACM: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html (recommended or AWS Identity and Access Management (AWS IAM: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html. You specify the location by setting a value in one of the following fields (not both: + AcmCertificateArn + IamCertificateId All distributions support HTTPS connections from viewers. To require viewers to use HTTPS only, or to redirect them from HTTP to HTTPS, use ViewerProtocolPolicy in the CacheBehavior or DefaultCacheBehavior. To specify how CloudFront should use SSL/TLS to communicate with your custom origin, use CustomOriginConfig. For more information, see Using HTTPS with CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https.html and Using Alternate Domain Names and HTTPS: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-alternate-domain-names.html in the *Amazon CloudFront Developer Guide*. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html .PARAMETER IamCertificateId If the distribution uses Aliases alternate domain names or CNAMEs and the SSL/TLS certificate is stored in AWS Identity and Access Management AWS IAM: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html, provide the ID of the IAM certificate. If you specify an IAM certificate ID, you must also specify values for MinimumProtocolVersion and SslSupportMethod. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-iamcertificateid UpdateType: Mutable PrimitiveType: String .PARAMETER SslSupportMethod If the distribution uses Aliases alternate domain names or CNAMEs, specify which viewers the distribution accepts HTTPS connections from. + sni-only – The distribution accepts HTTPS connections from only viewers that support server name indication SNI: https://en.wikipedia.org/wiki/Server_Name_Indication. This is recommended. Most browsers and clients released after 2010 support SNI. + vip – The distribution accepts HTTPS connections from all viewers including those that don’t support SNI. This is not recommended, and results in additional monthly charges from CloudFront. If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, don’t set a value for this field. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-sslsupportmethod UpdateType: Mutable PrimitiveType: String .PARAMETER MinimumProtocolVersion If the distribution uses Aliases alternate domain names or CNAMEs, specify the security policy that you want CloudFront to use for HTTPS connections with viewers. The security policy determines two settings: + The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers. + The ciphers that CloudFront can use to encrypt the content that it returns to viewers. For more information, see Security Policy: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValues-security-policy and Supported Protocols and Ciphers Between Viewers and CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html#secure-connections-supported-ciphers in the *Amazon CloudFront Developer Guide*. On the CloudFront console, this setting is called **Security Policy**. We recommend that you specify TLSv1.2_2018 unless your viewers are using browsers or devices that don’t support TLSv1.2. When you’re using SNI only you set SslSupportMethod to sni-only, you must specify TLSv1 or higher. If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net you set CloudFrontDefaultCertificate to true, CloudFront automatically sets the security policy to TLSv1 regardless of the value that you set here. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-minimumprotocolversion UpdateType: Mutable PrimitiveType: String .PARAMETER CloudFrontDefaultCertificate If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, set this field to true. If the distribution uses Aliases alternate domain names or CNAMEs, omit this field and specify values for the following fields: + AcmCertificateArn or IamCertificateId specify a value for one, not both + MinimumProtocolVersion + SslSupportMethod Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-cloudfrontdefaultcertificate UpdateType: Mutable PrimitiveType: Boolean .PARAMETER AcmCertificateArn If the distribution uses Aliases alternate domain names or CNAMEs and the SSL/TLS certificate is stored in AWS Certificate Manager ACM: https://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html, provide the Amazon Resource Name ARN of the ACM certificate. CloudFront only supports ACM certificates in the US East N. Virginia Region us-east-1. If you specify an ACM certificate ARN, you must also specify values for MinimumProtocolVersion and SslSupportMethod. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-viewercertificate.html#cfn-cloudfront-distribution-viewercertificate-acmcertificatearn UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontDistributionViewerCertificate])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $IamCertificateId, [parameter(Mandatory = $false)] [object] $SslSupportMethod, [parameter(Mandatory = $false)] [object] $MinimumProtocolVersion, [parameter(Mandatory = $false)] [object] $CloudFrontDefaultCertificate, [parameter(Mandatory = $false)] [object] $AcmCertificateArn ) Process { $obj = [CloudFrontDistributionViewerCertificate]::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-VSCloudFrontDistributionViewerCertificate' function Add-VSCloudFrontFunctionFunctionConfig { <# .SYNOPSIS Adds an AWS::CloudFront::Function.FunctionConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Function.FunctionConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER Runtime Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html#cfn-cloudfront-function-functionconfig-runtime UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontFunctionFunctionConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Comment, [parameter(Mandatory = $true)] [object] $Runtime ) Process { $obj = [CloudFrontFunctionFunctionConfig]::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-VSCloudFrontFunctionFunctionConfig' function Add-VSCloudFrontFunctionFunctionMetadata { <# .SYNOPSIS Adds an AWS::CloudFront::Function.FunctionMetadata resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::Function.FunctionMetadata resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html .PARAMETER FunctionARN Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionmetadata.html#cfn-cloudfront-function-functionmetadata-functionarn UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontFunctionFunctionMetadata])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $FunctionARN ) Process { $obj = [CloudFrontFunctionFunctionMetadata]::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-VSCloudFrontFunctionFunctionMetadata' function Add-VSCloudFrontKeyGroupKeyGroupConfig { <# .SYNOPSIS Adds an AWS::CloudFront::KeyGroup.KeyGroupConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::KeyGroup.KeyGroupConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-items UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html#cfn-cloudfront-keygroup-keygroupconfig-name UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontKeyGroupKeyGroupConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $true)] $Items, [parameter(Mandatory = $true)] [object] $Name ) Process { $obj = [CloudFrontKeyGroupKeyGroupConfig]::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-VSCloudFrontKeyGroupKeyGroupConfig' function Add-VSCloudFrontOriginRequestPolicyCookiesConfig { <# .SYNOPSIS Adds an AWS::CloudFront::OriginRequestPolicy.CookiesConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::OriginRequestPolicy.CookiesConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html .PARAMETER CookieBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookiebehavior UpdateType: Mutable PrimitiveType: String .PARAMETER Cookies Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-cookiesconfig.html#cfn-cloudfront-originrequestpolicy-cookiesconfig-cookies UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontOriginRequestPolicyCookiesConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $CookieBehavior, [parameter(Mandatory = $false)] $Cookies ) Process { $obj = [CloudFrontOriginRequestPolicyCookiesConfig]::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-VSCloudFrontOriginRequestPolicyCookiesConfig' function Add-VSCloudFrontOriginRequestPolicyHeadersConfig { <# .SYNOPSIS Adds an AWS::CloudFront::OriginRequestPolicy.HeadersConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::OriginRequestPolicy.HeadersConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html .PARAMETER HeaderBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headerbehavior UpdateType: Mutable PrimitiveType: String .PARAMETER Headers Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-headersconfig.html#cfn-cloudfront-originrequestpolicy-headersconfig-headers UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontOriginRequestPolicyHeadersConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $HeaderBehavior, [parameter(Mandatory = $false)] $Headers ) Process { $obj = [CloudFrontOriginRequestPolicyHeadersConfig]::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-VSCloudFrontOriginRequestPolicyHeadersConfig' function Add-VSCloudFrontOriginRequestPolicyOriginRequestPolicyConfig { <# .SYNOPSIS Adds an AWS::CloudFront::OriginRequestPolicy.OriginRequestPolicyConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::OriginRequestPolicy.OriginRequestPolicyConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER CookiesConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-cookiesconfig UpdateType: Mutable Type: CookiesConfig .PARAMETER HeadersConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-headersconfig UpdateType: Mutable Type: HeadersConfig .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-name UpdateType: Mutable PrimitiveType: String .PARAMETER QueryStringsConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-originrequestpolicyconfig.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig-querystringsconfig UpdateType: Mutable Type: QueryStringsConfig .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontOriginRequestPolicyOriginRequestPolicyConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $true)] $CookiesConfig, [parameter(Mandatory = $true)] $HeadersConfig, [parameter(Mandatory = $true)] [object] $Name, [parameter(Mandatory = $true)] $QueryStringsConfig ) Process { $obj = [CloudFrontOriginRequestPolicyOriginRequestPolicyConfig]::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-VSCloudFrontOriginRequestPolicyOriginRequestPolicyConfig' function Add-VSCloudFrontOriginRequestPolicyQueryStringsConfig { <# .SYNOPSIS Adds an AWS::CloudFront::OriginRequestPolicy.QueryStringsConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::OriginRequestPolicy.QueryStringsConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html .PARAMETER QueryStringBehavior Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystringbehavior UpdateType: Mutable PrimitiveType: String .PARAMETER QueryStrings Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originrequestpolicy-querystringsconfig.html#cfn-cloudfront-originrequestpolicy-querystringsconfig-querystrings UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontOriginRequestPolicyQueryStringsConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $QueryStringBehavior, [parameter(Mandatory = $false)] $QueryStrings ) Process { $obj = [CloudFrontOriginRequestPolicyQueryStringsConfig]::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-VSCloudFrontOriginRequestPolicyQueryStringsConfig' function Add-VSCloudFrontPublicKeyPublicKeyConfig { <# .SYNOPSIS Adds an AWS::CloudFront::PublicKey.PublicKeyConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::PublicKey.PublicKeyConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html .PARAMETER CallerReference Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-callerreference UpdateType: Mutable PrimitiveType: String .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER EncodedKey Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-encodedkey UpdateType: Mutable PrimitiveType: String .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-publickey-publickeyconfig.html#cfn-cloudfront-publickey-publickeyconfig-name UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontPublicKeyPublicKeyConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $CallerReference, [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $true)] [object] $EncodedKey, [parameter(Mandatory = $true)] [object] $Name ) Process { $obj = [CloudFrontPublicKeyPublicKeyConfig]::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-VSCloudFrontPublicKeyPublicKeyConfig' function Add-VSCloudFrontRealtimeLogConfigEndPoint { <# .SYNOPSIS Adds an AWS::CloudFront::RealtimeLogConfig.EndPoint resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::RealtimeLogConfig.EndPoint resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html .PARAMETER KinesisStreamConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-kinesisstreamconfig UpdateType: Mutable Type: KinesisStreamConfig .PARAMETER StreamType Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-endpoint.html#cfn-cloudfront-realtimelogconfig-endpoint-streamtype UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontRealtimeLogConfigEndPoint])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $KinesisStreamConfig, [parameter(Mandatory = $true)] [object] $StreamType ) Process { $obj = [CloudFrontRealtimeLogConfigEndPoint]::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-VSCloudFrontRealtimeLogConfigEndPoint' function Add-VSCloudFrontRealtimeLogConfigKinesisStreamConfig { <# .SYNOPSIS Adds an AWS::CloudFront::RealtimeLogConfig.KinesisStreamConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::RealtimeLogConfig.KinesisStreamConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html .PARAMETER RoleArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-rolearn UpdateType: Mutable PrimitiveType: String .PARAMETER StreamArn Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-realtimelogconfig-kinesisstreamconfig.html#cfn-cloudfront-realtimelogconfig-kinesisstreamconfig-streamarn UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontRealtimeLogConfigKinesisStreamConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $RoleArn, [parameter(Mandatory = $true)] [object] $StreamArn ) Process { $obj = [CloudFrontRealtimeLogConfigKinesisStreamConfig]::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-VSCloudFrontRealtimeLogConfigKinesisStreamConfig' function Add-VSCloudFrontResponseHeadersPolicyAccessControlAllowHeaders { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowHeaders resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowHeaders resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowheaders-items UpdateType: Mutable Type: List PrimitiveItemType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyAccessControlAllowHeaders])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Items ) Process { $obj = [CloudFrontResponseHeadersPolicyAccessControlAllowHeaders]::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-VSCloudFrontResponseHeadersPolicyAccessControlAllowHeaders' function Add-VSCloudFrontResponseHeadersPolicyAccessControlAllowMethods { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowMethods resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowMethods resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolallowmethods.html#cfn-cloudfront-responseheaderspolicy-accesscontrolallowmethods-items UpdateType: Mutable Type: List PrimitiveItemType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyAccessControlAllowMethods])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Items ) Process { $obj = [CloudFrontResponseHeadersPolicyAccessControlAllowMethods]::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-VSCloudFrontResponseHeadersPolicyAccessControlAllowMethods' function Add-VSCloudFrontResponseHeadersPolicyAccessControlAllowOrigins { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowOrigins resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlAllowOrigins resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html#cfn-cloudfront-responseheaderspolicy-accesscontrolalloworigins-items UpdateType: Mutable Type: List PrimitiveItemType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyAccessControlAllowOrigins])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Items ) Process { $obj = [CloudFrontResponseHeadersPolicyAccessControlAllowOrigins]::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-VSCloudFrontResponseHeadersPolicyAccessControlAllowOrigins' function Add-VSCloudFrontResponseHeadersPolicyAccessControlExposeHeaders { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlExposeHeaders resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.AccessControlExposeHeaders resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolexposeheaders.html#cfn-cloudfront-responseheaderspolicy-accesscontrolexposeheaders-items UpdateType: Mutable Type: List PrimitiveItemType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyAccessControlExposeHeaders])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] $Items ) Process { $obj = [CloudFrontResponseHeadersPolicyAccessControlExposeHeaders]::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-VSCloudFrontResponseHeadersPolicyAccessControlExposeHeaders' function Add-VSCloudFrontResponseHeadersPolicyContentSecurityPolicy { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.ContentSecurityPolicy resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.ContentSecurityPolicy resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html .PARAMETER ContentSecurityPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-contentsecuritypolicy UpdateType: Mutable PrimitiveType: String .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contentsecuritypolicy.html#cfn-cloudfront-responseheaderspolicy-contentsecuritypolicy-override UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyContentSecurityPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $ContentSecurityPolicy, [parameter(Mandatory = $true)] [object] $Override ) Process { $obj = [CloudFrontResponseHeadersPolicyContentSecurityPolicy]::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-VSCloudFrontResponseHeadersPolicyContentSecurityPolicy' function Add-VSCloudFrontResponseHeadersPolicyContentTypeOptions { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.ContentTypeOptions resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.ContentTypeOptions resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-contenttypeoptions.html#cfn-cloudfront-responseheaderspolicy-contenttypeoptions-override UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyContentTypeOptions])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Override ) Process { $obj = [CloudFrontResponseHeadersPolicyContentTypeOptions]::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-VSCloudFrontResponseHeadersPolicyContentTypeOptions' function Add-VSCloudFrontResponseHeadersPolicyCorsConfig { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.CorsConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.CorsConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html .PARAMETER AccessControlAllowCredentials Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowcredentials UpdateType: Mutable PrimitiveType: Boolean .PARAMETER AccessControlAllowHeaders Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowheaders UpdateType: Mutable Type: AccessControlAllowHeaders .PARAMETER AccessControlAllowMethods Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolallowmethods UpdateType: Mutable Type: AccessControlAllowMethods .PARAMETER AccessControlAllowOrigins Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolalloworigins UpdateType: Mutable Type: AccessControlAllowOrigins .PARAMETER AccessControlExposeHeaders Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolexposeheaders UpdateType: Mutable Type: AccessControlExposeHeaders .PARAMETER AccessControlMaxAgeSec Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-accesscontrolmaxagesec UpdateType: Mutable PrimitiveType: Integer .PARAMETER OriginOverride Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-corsconfig.html#cfn-cloudfront-responseheaderspolicy-corsconfig-originoverride UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyCorsConfig])] [cmdletbinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword","AccessControlAllowCredentials")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPasswordParams","AccessControlAllowCredentials")] Param( [parameter(Mandatory = $true)] [object] $AccessControlAllowCredentials, [parameter(Mandatory = $true)] $AccessControlAllowHeaders, [parameter(Mandatory = $true)] $AccessControlAllowMethods, [parameter(Mandatory = $true)] $AccessControlAllowOrigins, [parameter(Mandatory = $false)] $AccessControlExposeHeaders, [parameter(Mandatory = $false)] [object] $AccessControlMaxAgeSec, [parameter(Mandatory = $true)] [object] $OriginOverride ) Process { $obj = [CloudFrontResponseHeadersPolicyCorsConfig]::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-VSCloudFrontResponseHeadersPolicyCorsConfig' function Add-VSCloudFrontResponseHeadersPolicyCustomHeader { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.CustomHeader resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.CustomHeader resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html .PARAMETER Header Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-header UpdateType: Mutable PrimitiveType: String .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-override UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Value Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-value UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyCustomHeader])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Header, [parameter(Mandatory = $true)] [object] $Override, [parameter(Mandatory = $true)] [object] $Value ) Process { $obj = [CloudFrontResponseHeadersPolicyCustomHeader]::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-VSCloudFrontResponseHeadersPolicyCustomHeader' function Add-VSCloudFrontResponseHeadersPolicyCustomHeadersConfig { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.CustomHeadersConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.CustomHeadersConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html .PARAMETER Items Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheadersconfig.html#cfn-cloudfront-responseheaderspolicy-customheadersconfig-items UpdateType: Mutable Type: List ItemType: CustomHeader DuplicatesAllowed: True .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyCustomHeadersConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Items ) Process { $obj = [CloudFrontResponseHeadersPolicyCustomHeadersConfig]::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-VSCloudFrontResponseHeadersPolicyCustomHeadersConfig' function Add-VSCloudFrontResponseHeadersPolicyFrameOptions { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.FrameOptions resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.FrameOptions resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html .PARAMETER FrameOption Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-frameoption UpdateType: Mutable PrimitiveType: String .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-frameoptions.html#cfn-cloudfront-responseheaderspolicy-frameoptions-override UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyFrameOptions])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $FrameOption, [parameter(Mandatory = $true)] [object] $Override ) Process { $obj = [CloudFrontResponseHeadersPolicyFrameOptions]::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-VSCloudFrontResponseHeadersPolicyFrameOptions' function Add-VSCloudFrontResponseHeadersPolicyReferrerPolicy { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.ReferrerPolicy resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.ReferrerPolicy resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-override UpdateType: Mutable PrimitiveType: Boolean .PARAMETER ReferrerPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-referrerpolicy.html#cfn-cloudfront-responseheaderspolicy-referrerpolicy-referrerpolicy UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyReferrerPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Override, [parameter(Mandatory = $true)] [object] $ReferrerPolicy ) Process { $obj = [CloudFrontResponseHeadersPolicyReferrerPolicy]::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-VSCloudFrontResponseHeadersPolicyReferrerPolicy' function Add-VSCloudFrontResponseHeadersPolicyResponseHeadersPolicyConfig { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.ResponseHeadersPolicyConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.ResponseHeadersPolicyConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html .PARAMETER Comment Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-comment UpdateType: Mutable PrimitiveType: String .PARAMETER CorsConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-corsconfig UpdateType: Mutable Type: CorsConfig .PARAMETER CustomHeadersConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-customheadersconfig UpdateType: Mutable Type: CustomHeadersConfig .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-name UpdateType: Mutable PrimitiveType: String .PARAMETER SecurityHeadersConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-responseheaderspolicyconfig.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig-securityheadersconfig UpdateType: Mutable Type: SecurityHeadersConfig .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyResponseHeadersPolicyConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $Comment, [parameter(Mandatory = $false)] $CorsConfig, [parameter(Mandatory = $false)] $CustomHeadersConfig, [parameter(Mandatory = $true)] [object] $Name, [parameter(Mandatory = $false)] $SecurityHeadersConfig ) Process { $obj = [CloudFrontResponseHeadersPolicyResponseHeadersPolicyConfig]::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-VSCloudFrontResponseHeadersPolicyResponseHeadersPolicyConfig' function Add-VSCloudFrontResponseHeadersPolicySecurityHeadersConfig { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.SecurityHeadersConfig resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.SecurityHeadersConfig resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html .PARAMETER ContentSecurityPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contentsecuritypolicy UpdateType: Mutable Type: ContentSecurityPolicy .PARAMETER ContentTypeOptions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-contenttypeoptions UpdateType: Mutable Type: ContentTypeOptions .PARAMETER FrameOptions Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-frameoptions UpdateType: Mutable Type: FrameOptions .PARAMETER ReferrerPolicy Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-referrerpolicy UpdateType: Mutable Type: ReferrerPolicy .PARAMETER StrictTransportSecurity Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-stricttransportsecurity UpdateType: Mutable Type: StrictTransportSecurity .PARAMETER XSSProtection Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-securityheadersconfig.html#cfn-cloudfront-responseheaderspolicy-securityheadersconfig-xssprotection UpdateType: Mutable Type: XSSProtection .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicySecurityHeadersConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $ContentSecurityPolicy, [parameter(Mandatory = $false)] $ContentTypeOptions, [parameter(Mandatory = $false)] $FrameOptions, [parameter(Mandatory = $false)] $ReferrerPolicy, [parameter(Mandatory = $false)] $StrictTransportSecurity, [parameter(Mandatory = $false)] $XSSProtection ) Process { $obj = [CloudFrontResponseHeadersPolicySecurityHeadersConfig]::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-VSCloudFrontResponseHeadersPolicySecurityHeadersConfig' function Add-VSCloudFrontResponseHeadersPolicyStrictTransportSecurity { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.StrictTransportSecurity resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.StrictTransportSecurity resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html .PARAMETER AccessControlMaxAgeSec Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-accesscontrolmaxagesec UpdateType: Mutable PrimitiveType: Integer .PARAMETER IncludeSubdomains Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-includesubdomains UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-override UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Preload Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-stricttransportsecurity.html#cfn-cloudfront-responseheaderspolicy-stricttransportsecurity-preload UpdateType: Mutable PrimitiveType: Boolean .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyStrictTransportSecurity])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $AccessControlMaxAgeSec, [parameter(Mandatory = $false)] [object] $IncludeSubdomains, [parameter(Mandatory = $true)] [object] $Override, [parameter(Mandatory = $false)] [object] $Preload ) Process { $obj = [CloudFrontResponseHeadersPolicyStrictTransportSecurity]::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-VSCloudFrontResponseHeadersPolicyStrictTransportSecurity' function Add-VSCloudFrontResponseHeadersPolicyXSSProtection { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy.XSSProtection resource property to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy.XSSProtection resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html .PARAMETER ModeBlock Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-modeblock UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Override Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-override UpdateType: Mutable PrimitiveType: Boolean .PARAMETER Protection Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-protection UpdateType: Mutable PrimitiveType: Boolean .PARAMETER ReportUri Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-xssprotection.html#cfn-cloudfront-responseheaderspolicy-xssprotection-reporturi UpdateType: Mutable PrimitiveType: String .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontResponseHeadersPolicyXSSProtection])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] [object] $ModeBlock, [parameter(Mandatory = $true)] [object] $Override, [parameter(Mandatory = $true)] [object] $Protection, [parameter(Mandatory = $false)] [object] $ReportUri ) Process { $obj = [CloudFrontResponseHeadersPolicyXSSProtection]::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-VSCloudFrontResponseHeadersPolicyXSSProtection' function Add-VSCloudFrontStreamingDistributionLogging { <# .SYNOPSIS Adds an AWS::CloudFront::StreamingDistribution.Logging resource property to the template. A complex type that controls whether access logs are written for the streaming distribution. .DESCRIPTION Adds an AWS::CloudFront::StreamingDistribution.Logging resource property to the template. A complex type that controls whether access logs are written for the streaming distribution. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html .PARAMETER Bucket The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-bucket PrimitiveType: String UpdateType: Mutable .PARAMETER Enabled Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-enabled PrimitiveType: Boolean UpdateType: Mutable .PARAMETER Prefix An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-logging.html#cfn-cloudfront-streamingdistribution-logging-prefix PrimitiveType: String UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontStreamingDistributionLogging])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Bucket, [parameter(Mandatory = $true)] [object] $Enabled, [parameter(Mandatory = $true)] [object] $Prefix ) Process { $obj = [CloudFrontStreamingDistributionLogging]::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-VSCloudFrontStreamingDistributionLogging' function Add-VSCloudFrontStreamingDistributionS3Origin { <# .SYNOPSIS Adds an AWS::CloudFront::StreamingDistribution.S3Origin resource property to the template. A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution. .DESCRIPTION Adds an AWS::CloudFront::StreamingDistribution.S3Origin resource property to the template. A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html .PARAMETER DomainName The DNS name of the Amazon S3 origin. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-domainname PrimitiveType: String UpdateType: Mutable .PARAMETER OriginAccessIdentity The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html in the * Amazon CloudFront Developer Guide*. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-s3origin.html#cfn-cloudfront-streamingdistribution-s3origin-originaccessidentity PrimitiveType: String UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontStreamingDistributionS3Origin])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $DomainName, [parameter(Mandatory = $true)] [object] $OriginAccessIdentity ) Process { $obj = [CloudFrontStreamingDistributionS3Origin]::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-VSCloudFrontStreamingDistributionS3Origin' function Add-VSCloudFrontStreamingDistributionStreamingDistributionConfig { <# .SYNOPSIS Adds an AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig resource property to the template. The RTMP distribution's configuration information. .DESCRIPTION Adds an AWS::CloudFront::StreamingDistribution.StreamingDistributionConfig resource property to the template. The RTMP distribution's configuration information. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html .PARAMETER Logging A complex type that controls whether access logs are written for the streaming distribution. Type: Logging Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-logging UpdateType: Mutable .PARAMETER Comment Any comments you want to include about the streaming distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-comment PrimitiveType: String UpdateType: Mutable .PARAMETER PriceClass A complex type that contains information about price class for this streaming distribution. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-priceclass PrimitiveType: String UpdateType: Mutable .PARAMETER S3Origin A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution. Type: S3Origin Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-s3origin UpdateType: Mutable .PARAMETER Enabled Whether the streaming distribution is enabled to accept user requests for content. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-enabled PrimitiveType: Boolean UpdateType: Mutable .PARAMETER Aliases A complex type that contains information about CNAMEs alternate domain names, if any, for this streaming distribution. PrimitiveItemType: String Type: List Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-aliases UpdateType: Mutable .PARAMETER TrustedSigners A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html in the *Amazon CloudFront Developer Guide*. Type: TrustedSigners Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-streamingdistributionconfig.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig-trustedsigners UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontStreamingDistributionStreamingDistributionConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $false)] $Logging, [parameter(Mandatory = $true)] [object] $Comment, [parameter(Mandatory = $false)] [object] $PriceClass, [parameter(Mandatory = $true)] $S3Origin, [parameter(Mandatory = $true)] [object] $Enabled, [parameter(Mandatory = $false)] $Aliases, [parameter(Mandatory = $true)] $TrustedSigners ) Process { $obj = [CloudFrontStreamingDistributionStreamingDistributionConfig]::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-VSCloudFrontStreamingDistributionStreamingDistributionConfig' function Add-VSCloudFrontStreamingDistributionTrustedSigners { <# .SYNOPSIS Adds an AWS::CloudFront::StreamingDistribution.TrustedSigners resource property to the template. Specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. .DESCRIPTION Adds an AWS::CloudFront::StreamingDistribution.TrustedSigners resource property to the template. Specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin, specify true for Enabled, and specify a list of AWS account IDs. For more information, see Serving Private Content through CloudFront: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html in the * Amazon CloudFront Developer Guide*. If you don't want to require signed URLs in requests for objects, specify false for Enabled and omit the list of AWS account IDs. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html .PARAMETER Enabled Specifies whether you want to require viewers to use signed URLs to access the files specified by PathPattern and TargetOriginId. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-enabled PrimitiveType: Boolean UpdateType: Mutable .PARAMETER AwsAccountNumbers An AWS account that is included in the TrustedSigners complex type for this distribution. Valid values include: + self, which is the AWS account used to create the distribution. + An AWS account number. PrimitiveItemType: String Type: List Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-streamingdistribution-trustedsigners.html#cfn-cloudfront-streamingdistribution-trustedsigners-awsaccountnumbers UpdateType: Mutable .FUNCTIONALITY Vaporshell #> [OutputType([CloudFrontStreamingDistributionTrustedSigners])] [cmdletbinding()] Param( [parameter(Mandatory = $true)] [object] $Enabled, [parameter(Mandatory = $false)] $AwsAccountNumbers ) Process { $obj = [CloudFrontStreamingDistributionTrustedSigners]::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-VSCloudFrontStreamingDistributionTrustedSigners' function New-VSCloudFrontCachePolicy { <# .SYNOPSIS Adds an AWS::CloudFront::CachePolicy resource to the template. .DESCRIPTION Adds an AWS::CloudFront::CachePolicy resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.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 CachePolicyConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cachepolicy.html#cfn-cloudfront-cachepolicy-cachepolicyconfig UpdateType: Mutable Type: CachePolicyConfig .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([CloudFrontCachePolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $CachePolicyConfig, [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 = [CloudFrontCachePolicy]::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-VSCloudFrontCachePolicy' function New-VSCloudFrontCloudFrontOriginAccessIdentity { <# .SYNOPSIS Adds an AWS::CloudFront::CloudFrontOriginAccessIdentity resource to the template. The request to create a new origin access identity (OAI. An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html in the *Amazon CloudFront Developer Guide*. .DESCRIPTION Adds an AWS::CloudFront::CloudFrontOriginAccessIdentity resource to the template. The request to create a new origin access identity (OAI. An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html in the *Amazon CloudFront Developer Guide*. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.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 CloudFrontOriginAccessIdentityConfig The current configuration information for the identity. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig UpdateType: Mutable Type: CloudFrontOriginAccessIdentityConfig .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([CloudFrontCloudFrontOriginAccessIdentity])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $CloudFrontOriginAccessIdentityConfig, [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 = [CloudFrontCloudFrontOriginAccessIdentity]::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-VSCloudFrontCloudFrontOriginAccessIdentity' function New-VSCloudFrontDistribution { <# .SYNOPSIS Adds an AWS::CloudFront::Distribution resource to the template. A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. .DESCRIPTION Adds an AWS::CloudFront::Distribution resource to the template. A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.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 DistributionConfig The current configuration information for the distribution. Send a GET request to the /CloudFront API version/distribution ID/config resource. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-distributionconfig UpdateType: Mutable Type: DistributionConfig .PARAMETER Tags A complex type that contains zero or more Tag elements. Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html#cfn-cloudfront-distribution-tags UpdateType: Mutable Type: List ItemType: Tag DuplicatesAllowed: True .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([CloudFrontDistribution])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $DistributionConfig, [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 = [CloudFrontDistribution]::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-VSCloudFrontDistribution' function New-VSCloudFrontFunction { <# .SYNOPSIS Adds an AWS::CloudFront::Function resource to the template. .DESCRIPTION Adds an AWS::CloudFront::Function resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.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 AutoPublish Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-autopublish UpdateType: Mutable PrimitiveType: Boolean .PARAMETER FunctionCode Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functioncode UpdateType: Mutable PrimitiveType: String .PARAMETER FunctionConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-functionconfig UpdateType: Mutable Type: FunctionConfig .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html#cfn-cloudfront-function-name UpdateType: Mutable PrimitiveType: String .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([CloudFrontFunction])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $false)] [object] $AutoPublish, [parameter(Mandatory = $false)] [object] $FunctionCode, [parameter(Mandatory = $false)] $FunctionConfig, [parameter(Mandatory = $true)] [object] $Name, [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 = [CloudFrontFunction]::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-VSCloudFrontFunction' function New-VSCloudFrontKeyGroup { <# .SYNOPSIS Adds an AWS::CloudFront::KeyGroup resource to the template. .DESCRIPTION Adds an AWS::CloudFront::KeyGroup resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.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 KeyGroupConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html#cfn-cloudfront-keygroup-keygroupconfig UpdateType: Mutable Type: KeyGroupConfig .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([CloudFrontKeyGroup])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $KeyGroupConfig, [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 = [CloudFrontKeyGroup]::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-VSCloudFrontKeyGroup' function New-VSCloudFrontOriginRequestPolicy { <# .SYNOPSIS Adds an AWS::CloudFront::OriginRequestPolicy resource to the template. .DESCRIPTION Adds an AWS::CloudFront::OriginRequestPolicy resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.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 OriginRequestPolicyConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originrequestpolicy.html#cfn-cloudfront-originrequestpolicy-originrequestpolicyconfig UpdateType: Mutable Type: OriginRequestPolicyConfig .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([CloudFrontOriginRequestPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $OriginRequestPolicyConfig, [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 = [CloudFrontOriginRequestPolicy]::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-VSCloudFrontOriginRequestPolicy' function New-VSCloudFrontPublicKey { <# .SYNOPSIS Adds an AWS::CloudFront::PublicKey resource to the template. .DESCRIPTION Adds an AWS::CloudFront::PublicKey resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.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 PublicKeyConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-publickey.html#cfn-cloudfront-publickey-publickeyconfig UpdateType: Mutable Type: PublicKeyConfig .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([CloudFrontPublicKey])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $PublicKeyConfig, [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 = [CloudFrontPublicKey]::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-VSCloudFrontPublicKey' function New-VSCloudFrontRealtimeLogConfig { <# .SYNOPSIS Adds an AWS::CloudFront::RealtimeLogConfig resource to the template. .DESCRIPTION Adds an AWS::CloudFront::RealtimeLogConfig resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.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 EndPoints Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-endpoints UpdateType: Mutable Type: List ItemType: EndPoint DuplicatesAllowed: True .PARAMETER Fields Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-fields UpdateType: Mutable Type: List PrimitiveItemType: String DuplicatesAllowed: True .PARAMETER Name Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-name UpdateType: Immutable PrimitiveType: String .PARAMETER SamplingRate Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-realtimelogconfig.html#cfn-cloudfront-realtimelogconfig-samplingrate UpdateType: Mutable PrimitiveType: Double .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([CloudFrontRealtimeLogConfig])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] [object] $EndPoints, [parameter(Mandatory = $true)] $Fields, [parameter(Mandatory = $true)] [object] $Name, [parameter(Mandatory = $true)] [object] $SamplingRate, [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 = [CloudFrontRealtimeLogConfig]::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-VSCloudFrontRealtimeLogConfig' function New-VSCloudFrontResponseHeadersPolicy { <# .SYNOPSIS Adds an AWS::CloudFront::ResponseHeadersPolicy resource to the template. .DESCRIPTION Adds an AWS::CloudFront::ResponseHeadersPolicy resource to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.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 ResponseHeadersPolicyConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-responseheaderspolicy.html#cfn-cloudfront-responseheaderspolicy-responseheaderspolicyconfig UpdateType: Mutable Type: ResponseHeadersPolicyConfig .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([CloudFrontResponseHeadersPolicy])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $ResponseHeadersPolicyConfig, [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 = [CloudFrontResponseHeadersPolicy]::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-VSCloudFrontResponseHeadersPolicy' function New-VSCloudFrontStreamingDistribution { <# .SYNOPSIS Adds an AWS::CloudFront::StreamingDistribution resource to the template. A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to track and manage content delivery. .DESCRIPTION Adds an AWS::CloudFront::StreamingDistribution resource to the template. A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to track and manage content delivery. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.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 StreamingDistributionConfig The current configuration information for the RTMP distribution. Type: StreamingDistributionConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-streamingdistributionconfig UpdateType: Mutable .PARAMETER Tags A complex type that contains zero or more Tag elements. Type: List Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-streamingdistribution.html#cfn-cloudfront-streamingdistribution-tags ItemType: Tag UpdateType: Mutable .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([CloudFrontStreamingDistribution])] [cmdletbinding()] Param( [parameter(Mandatory = $true,Position = 0)] [ValidateLogicalId()] [string] $LogicalId, [parameter(Mandatory = $true)] $StreamingDistributionConfig, [TransformTag()] [object] [parameter(Mandatory = $true)] $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 = [CloudFrontStreamingDistribution]::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-VSCloudFrontStreamingDistribution' |