CfnLoadBalancerPropsMixin

class aws_cdk.mixins_preview.aws_lightsail.mixins.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.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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 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.

Stability:

experimental