CfnDistributionMixinProps
- class aws_cdk.mixins_preview.aws_lightsail.mixins.CfnDistributionMixinProps(*, bundle_id=None, cache_behaviors=None, cache_behavior_settings=None, certificate_name=None, default_cache_behavior=None, distribution_name=None, ip_address_type=None, is_enabled=None, origin=None, tags=None)
Bases:
objectProperties for CfnDistributionPropsMixin.
- Parameters:
bundle_id (
Optional[str]) – The ID of the bundle applied to the distribution.cache_behaviors (
Union[IResolvable,Sequence[Union[IResolvable,CacheBehaviorPerPathProperty,Dict[str,Any]]],None]) – An array of objects that describe the per-path cache behavior of the distribution.cache_behavior_settings (
Union[IResolvable,CacheSettingsProperty,Dict[str,Any],None]) – An object that describes the cache behavior settings of the distribution.certificate_name (
Optional[str]) – The name of the SSL/TLS certificate attached to the distribution.default_cache_behavior (
Union[IResolvable,CacheBehaviorProperty,Dict[str,Any],None]) – An object that describes the default cache behavior of the distribution.distribution_name (
Optional[str]) – The name of the distribution.ip_address_type (
Optional[str]) – The IP address type of the distribution. The possible values areipv4for IPv4 only, anddualstackfor IPv4 and IPv6.is_enabled (
Union[bool,IResolvable,None]) – A Boolean value indicating whether the distribution is enabled.origin (
Union[IResolvable,InputOriginProperty,Dict[str,Any],None]) – An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. The distribution pulls, caches, and serves content from the origin.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag in the AWS CloudFormation User Guide . .. epigraph:: TheValueofTagsis optional for Lightsail resources.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_lightsail import mixins as lightsail_mixins cfn_distribution_mixin_props = lightsail_mixins.CfnDistributionMixinProps( bundle_id="bundleId", cache_behaviors=[lightsail_mixins.CfnDistributionPropsMixin.CacheBehaviorPerPathProperty( behavior="behavior", path="path" )], cache_behavior_settings=lightsail_mixins.CfnDistributionPropsMixin.CacheSettingsProperty( allowed_http_methods="allowedHttpMethods", cached_http_methods="cachedHttpMethods", default_ttl=123, forwarded_cookies=lightsail_mixins.CfnDistributionPropsMixin.CookieObjectProperty( cookies_allow_list=["cookiesAllowList"], option="option" ), forwarded_headers=lightsail_mixins.CfnDistributionPropsMixin.HeaderObjectProperty( headers_allow_list=["headersAllowList"], option="option" ), forwarded_query_strings=lightsail_mixins.CfnDistributionPropsMixin.QueryStringObjectProperty( option=False, query_strings_allow_list=["queryStringsAllowList"] ), maximum_ttl=123, minimum_ttl=123 ), certificate_name="certificateName", default_cache_behavior=lightsail_mixins.CfnDistributionPropsMixin.CacheBehaviorProperty( behavior="behavior" ), distribution_name="distributionName", ip_address_type="ipAddressType", is_enabled=False, origin=lightsail_mixins.CfnDistributionPropsMixin.InputOriginProperty( name="name", protocol_policy="protocolPolicy", region_name="regionName" ), tags=[CfnTag( key="key", value="value" )] )
Attributes
- bundle_id
The ID of the bundle applied to the distribution.
- cache_behavior_settings
An object that describes the cache behavior settings of the distribution.
- cache_behaviors
An array of objects that describe the per-path cache behavior of the distribution.
- certificate_name
The name of the SSL/TLS certificate attached to the distribution.
- default_cache_behavior
An object that describes the default cache behavior of the distribution.
- distribution_name
The name of the distribution.
- ip_address_type
The IP address type of the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.
- is_enabled
A Boolean value indicating whether the distribution is enabled.
- origin
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.