You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Lightsail::Types::UpdateDistributionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lightsail::Types::UpdateDistributionRequest
- Defined in:
- (unknown)
Overview
When passing UpdateDistributionRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
distribution_name: "ResourceName", # required
origin: {
name: "ResourceName",
region_name: "us-east-1", # accepts us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-west-3, eu-central-1, ca-central-1, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2
protocol_policy: "http-only", # accepts http-only, https-only
},
default_cache_behavior: {
behavior: "dont-cache", # accepts dont-cache, cache
},
cache_behavior_settings: {
default_ttl: 1,
minimum_ttl: 1,
maximum_ttl: 1,
allowed_http_methods: "NonEmptyString",
cached_http_methods: "NonEmptyString",
forwarded_cookies: {
option: "none", # accepts none, allow-list, all
cookies_allow_list: ["string"],
},
forwarded_headers: {
option: "none", # accepts none, allow-list, all
headers_allow_list: ["Accept"], # accepts Accept, Accept-Charset, Accept-Datetime, Accept-Encoding, Accept-Language, Authorization, CloudFront-Forwarded-Proto, CloudFront-Is-Desktop-Viewer, CloudFront-Is-Mobile-Viewer, CloudFront-Is-SmartTV-Viewer, CloudFront-Is-Tablet-Viewer, CloudFront-Viewer-Country, Host, Origin, Referer
},
forwarded_query_strings: {
option: false,
query_strings_allow_list: ["string"],
},
},
cache_behaviors: [
{
path: "string",
behavior: "dont-cache", # accepts dont-cache, cache
},
],
is_enabled: false,
}
Instance Attribute Summary collapse
-
#cache_behavior_settings ⇒ Types::CacheSettings
An object that describes the cache behavior settings for the distribution.
-
#cache_behaviors ⇒ Array<Types::CacheBehaviorPerPath>
An array of objects that describe the per-path cache behavior for the distribution.
-
#default_cache_behavior ⇒ Types::CacheBehavior
An object that describes the default cache behavior for the distribution.
-
#distribution_name ⇒ String
The name of the distribution to update.
-
#is_enabled ⇒ Boolean
Indicates whether to enable the distribution.
-
#origin ⇒ Types::InputOrigin
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
Instance Attribute Details
#cache_behavior_settings ⇒ Types::CacheSettings
An object that describes the cache behavior settings for the distribution.
cacheBehaviorSettings
specified in your
UpdateDistributionRequest
will replace your distribution\'s existing
settings.
#cache_behaviors ⇒ Array<Types::CacheBehaviorPerPath>
An array of objects that describe the per-path cache behavior for the distribution.
#default_cache_behavior ⇒ Types::CacheBehavior
An object that describes the default cache behavior for the distribution.
#distribution_name ⇒ String
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names
that you can specify.
#is_enabled ⇒ Boolean
Indicates whether to enable the distribution.
#origin ⇒ Types::InputOrigin
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.