CmdID / aws / aws lightsail
aws lightsail update-distribution
Updates an existing Amazon Lightsail content delivery network (CDN) distribution. AWS CLI reference
14 options Its page in the AWS CLI reference
Options
--cache-behavior-settingsAn object that describes the cache behavior settings for the distribution.--cache-behaviorsAn array of objects that describe the per-path cache behavior for the distribution.--certificate-nameThe name of the SSL/TLS certificate that you want to attach to the distribution.--custom-error-responsesAn array of objects that describe the custom error responses for the distribution.--default-cache-behaviorAn object that describes the default cache behavior for the distribution.--default-root-objectThe object (for example, index.html) that the distribution returns when a viewer requests the root URL of the distribution (/) instead of a specific object.--distribution-nameThe name of the distribution to update.--enable-private-origin-accessSpecifies whether to enable private origin access for the distribution.--enable-wafSpecifies whether to enable Web Application Firewall (WAF) for the distribution.--is-enabledIndicates whether to enable the distribution.--originAn object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.--use-default-certificateIndicates whether the default SSL/TLS certificate is attached to the distribution.--viewer-minimum-tls-protocol-versionUse this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.--waf-rulesAn array of objects that describe the WAF rule groups to enable for the distribution.