CfnLoadBalancerPropsMixin

class aws_cdk.cfn_property_mixins.aws_lightsail.CfnLoadBalancerPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::Lightsail::LoadBalancer resource 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::LoadBalancer resource type. Instead, use the AWS::Lightsail::LoadBalancerTlsCertificate resource type to create a certificate and attach it to a load balancer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-loadbalancer.html

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.cfn_property_mixins import aws_lightsail as lightsail
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_load_balancer_props_mixin = lightsail.CfnLoadBalancerPropsMixin(lightsail.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=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    tls_policy_name="tlsPolicyName"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Lightsail::LoadBalancer.

Parameters:
  • props (Union[CfnLoadBalancerMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

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)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.