AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Update-LSDistribution-DistributionName <String>-CacheBehaviorSettings_AllowedHTTPMethod <String>-DefaultCacheBehavior_Behavior <BehaviorEnum>-CacheBehavior <CacheBehaviorPerPath[]>-CacheBehaviorSettings_CachedHTTPMethod <String>-ForwardedCookies_CookiesAllowList <String[]>-CacheBehaviorSettings_DefaultTTL <Int64>-ForwardedHeaders_HeadersAllowList <String[]>-IsEnabled <Boolean>-CacheBehaviorSettings_MaximumTTL <Int64>-CacheBehaviorSettings_MinimumTTL <Int64>-Origin_Name <String>-ForwardedCookies_Option <ForwardValues>-ForwardedHeaders_Option <ForwardValues>-ForwardedQueryStrings_Option <Boolean>-Origin_ProtocolPolicy <OriginProtocolPolicyEnum>-ForwardedQueryStrings_QueryStringsAllowList <String[]>-Origin_RegionName <RegionName>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonLightsailConfig>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviors |
GET,HEAD
- The distribution forwards the GET
and HEAD
methods.GET,HEAD,OPTIONS
- The distribution forwards the GET
, HEAD
, and OPTIONS
methods.GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE
- The distribution forwards the GET
, HEAD
, OPTIONS
, PUT
, PATCH
, POST
, and DELETE
methods.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_AllowedHTTPMethods |
GET,HEAD
- The distribution caches responses to the GET
and HEAD
methods.GET,HEAD,OPTIONS
- The distribution caches responses to the GET
, HEAD
, and OPTIONS
methods.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_CachedHTTPMethods |
Cache-Control max-age
, Cache-Control s-maxage
, and Expires
to objects. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Cache-Control max-age
, Cache-Control s-maxage
, and Expires
to objects. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
0
must be specified for minimumTTL
if the distribution is configured to forward all headers to the origin. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
cache
- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.dont-cache
- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath
parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
GetDistributions
action to get a list of distribution names that you can specify. Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedCookies_CookiesAllowList |
all
, none
, or allow-list
to forward only the cookies specified in the cookiesAllowList
parameter. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedCookies_Option |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedHeaders_HeadersAllowList |
all
- Forward all headers to your origin.none
- Forward only the default headers.allow-list
- Forward only the headers you specify using the headersAllowList
parameter.Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedHeaders_Option |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedQueryStrings_Option |
option
parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList
parameter. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | CacheBehaviorSettings_ForwardedQueryStrings_QueryStringsAllowList |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
AWS Tools for PowerShell: 2.x.y.z