--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_lightsail_distribution Data Source - terraform-provider-awscc" subcategory: "" description: |- Data Source schema for AWS::Lightsail::Distribution --- # awscc_lightsail_distribution (Data Source) Data Source schema for AWS::Lightsail::Distribution ## Schema ### Required - `id` (String) Uniquely identifies the resource. ### Read-Only - `able_to_update_bundle` (Boolean) Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName parameter, can be changed to another bundle. - `bundle_id` (String) The bundle ID to use for the distribution. - `cache_behavior_settings` (Attributes) An object that describes the cache behavior settings for the distribution. (see [below for nested schema](#nestedatt--cache_behavior_settings)) - `cache_behaviors` (Attributes Set) An array of objects that describe the per-path cache behavior for the distribution. (see [below for nested schema](#nestedatt--cache_behaviors)) - `certificate_name` (String) The certificate attached to the Distribution. - `default_cache_behavior` (Attributes) An object that describes the default cache behavior for the distribution. (see [below for nested schema](#nestedatt--default_cache_behavior)) - `distribution_arn` (String) - `distribution_name` (String) The name for the distribution. - `ip_address_type` (String) The IP address type for the distribution. - `is_enabled` (Boolean) Indicates whether the distribution is enabled. - `origin` (Attributes) An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer. (see [below for nested schema](#nestedatt--origin)) - `status` (String) The status of the distribution. - `tags` (Attributes Set) An array of key-value pairs to apply to this resource. (see [below for nested schema](#nestedatt--tags)) ### Nested Schema for `cache_behavior_settings` Read-Only: - `allowed_http_methods` (String) The HTTP methods that are processed and forwarded to the distribution's origin. - `cached_http_methods` (String) The HTTP method responses that are cached by your distribution. - `default_ttl` (Number) The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated. - `forwarded_cookies` (Attributes) An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded. (see [below for nested schema](#nestedatt--cache_behavior_settings--forwarded_cookies)) - `forwarded_headers` (Attributes) An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded. (see [below for nested schema](#nestedatt--cache_behavior_settings--forwarded_headers)) - `forwarded_query_strings` (Attributes) An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded. (see [below for nested schema](#nestedatt--cache_behavior_settings--forwarded_query_strings)) - `maximum_ttl` (Number) The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated. - `minimum_ttl` (Number) The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated. ### Nested Schema for `cache_behavior_settings.forwarded_cookies` Read-Only: - `cookies_allow_list` (Set of String) The specific cookies to forward to your distribution's origin. - `option` (String) Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter. ### Nested Schema for `cache_behavior_settings.forwarded_headers` Read-Only: - `headers_allow_list` (Set of String) The specific headers to forward to your distribution's origin. - `option` (String) The headers that you want your distribution to forward to your origin and base caching on. ### Nested Schema for `cache_behavior_settings.forwarded_query_strings` Read-Only: - `option` (Boolean) Indicates whether the distribution forwards and caches based on query strings. - `query_strings_allow_list` (Set of String) The specific query strings that the distribution forwards to the origin. ### Nested Schema for `cache_behaviors` Read-Only: - `behavior` (String) The cache behavior for the specified path. - `path` (String) The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive. ### Nested Schema for `default_cache_behavior` Read-Only: - `behavior` (String) The cache behavior of the distribution. ### Nested Schema for `origin` Read-Only: - `name` (String) The name of the origin resource. - `protocol_policy` (String) The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content. - `region_name` (String) The AWS Region name of the origin resource. ### Nested Schema for `tags` Read-Only: - `key` (String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. - `value` (String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.