CreateDistributionRequest
¶
Source code in docs_src/capo_lightsail/types/create_distribution_request.py
bundle_id
instance-attribute
¶
bundle_id: string
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.
cache_behavior_settings
instance-attribute
¶
cache_behavior_settings: NotRequired[CacheSettings]
An object that describes the cache behavior settings for the distribution.
cache_behaviors
instance-attribute
¶
cache_behaviors: NotRequired[CacheBehaviorList]
An array of objects that describe the per-path cache behavior for the distribution.
certificate_name
instance-attribute
¶
certificate_name: NotRequired[ResourceName]
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
custom_error_responses
instance-attribute
¶
custom_error_responses: NotRequired[DistributionCustomErrorResponseList]
An array of objects that describe the custom error responses for the distribution. With a custom error response, you can specify the page to return when the origin responds with a given HTTP error code. You can also specify the HTTP status code to send to the viewer.
default_cache_behavior
instance-attribute
¶
default_cache_behavior: CacheBehavior
An object that describes the default cache behavior for the distribution.
default_root_object
instance-attribute
¶
default_root_object: NotRequired[string]
The object (for example, index.html) that the distribution returns when a viewer requests the root URL of the distribution (/) instead of a specific object. The object that you specify must be available from the origin.
distribution_name
instance-attribute
¶
distribution_name: ResourceName
The name for the distribution.
enable_private_origin_access
instance-attribute
¶
enable_private_origin_access: NotRequired[boolean]
Specifies whether to enable private origin access for the distribution. With private origin access, the distribution can serve objects that aren't publicly accessible from a Lightsail bucket.
Lightsail grants the distribution permission to read the bucket's objects. Enabling private origin access doesn't change the bucket's access settings, and you can still retrieve publicly accessible objects directly from the bucket's endpoint.
You can enable private origin access only when the distribution's origin is a Lightsail bucket. If the origin is another resource type, the request fails.
ip_address_type
instance-attribute
¶
ip_address_type: NotRequired[IpAddressType]
The IP address type for the distribution.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
The default value is dualstack.
origin
instance-attribute
¶
origin: InputOrigin
An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
tags
instance-attribute
¶
tags: NotRequired[TagList]
The tag keys and optional values to add to the distribution during create.
Use the TagResource action to tag a resource after it's created.
viewer_minimum_tls_protocol_version
instance-attribute
¶
viewer_minimum_tls_protocol_version: NotRequired[ViewerMinimumTlsProtocolVersionEnum]
The minimum TLS protocol version for the SSL/TLS certificate.