CfnLoadBalancerPropsMixin
- class aws_cdk.mixins_preview.aws_lightsail.mixins.CfnLoadBalancerPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Lightsail::LoadBalancerresource specifies a load balancer that can be used with Lightsail instances.You cannot attach a TLS certificate to a load balancer using the
AWS::Lightsail::LoadBalancerresource type. Instead, use theAWS::Lightsail::LoadBalancerTlsCertificateresource type to create a certificate and attach it to a load balancer.- See:
- CloudformationResource:
AWS::Lightsail::LoadBalancer
- Mixin:
true
- 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 import mixins from aws_cdk.mixins_preview.aws_lightsail import mixins as lightsail_mixins cfn_load_balancer_props_mixin = lightsail_mixins.CfnLoadBalancerPropsMixin(lightsail_mixins.CfnLoadBalancerMixinProps( attached_instances=["attachedInstances"], health_check_path="healthCheckPath", instance_port=123, ip_address_type="ipAddressType", load_balancer_name="loadBalancerName", session_stickiness_enabled=False, session_stickiness_lb_cookie_duration_seconds="sessionStickinessLbCookieDurationSeconds", tags=[CfnTag( key="key", value="value" )], tls_policy_name="tlsPolicyName" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Lightsail::LoadBalancer.- Parameters:
props (
Union[CfnLoadBalancerMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['attachedInstances', 'healthCheckPath', 'instancePort', 'ipAddressType', 'loadBalancerName', 'sessionStickinessEnabled', 'sessionStickinessLbCookieDurationSeconds', 'tags', 'tlsPolicyName']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental