CfnLoadBalancerProps

class aws_cdk.aws_elasticloadbalancingv2.CfnLoadBalancerProps(*, ip_address_type=None, load_balancer_attributes=None, name=None, scheme=None, security_groups=None, subnet_mappings=None, subnets=None, tags=None, type=None)

Bases: object

Properties for defining a AWS::ElasticLoadBalancingV2::LoadBalancer.

Parameters
  • ip_address_type (Optional[str]) – AWS::ElasticLoadBalancingV2::LoadBalancer.IpAddressType.

  • load_balancer_attributes (Union[IResolvable, Sequence[Union[IResolvable, LoadBalancerAttributeProperty]], None]) – AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttributes.

  • name (Optional[str]) – AWS::ElasticLoadBalancingV2::LoadBalancer.Name.

  • scheme (Optional[str]) – AWS::ElasticLoadBalancingV2::LoadBalancer.Scheme.

  • security_groups (Optional[Sequence[str]]) – AWS::ElasticLoadBalancingV2::LoadBalancer.SecurityGroups.

  • subnet_mappings (Union[IResolvable, Sequence[Union[IResolvable, SubnetMappingProperty]], None]) – AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMappings.

  • subnets (Optional[Sequence[str]]) – AWS::ElasticLoadBalancingV2::LoadBalancer.Subnets.

  • tags (Optional[Sequence[CfnTag]]) – AWS::ElasticLoadBalancingV2::LoadBalancer.Tags.

  • type (Optional[str]) – AWS::ElasticLoadBalancingV2::LoadBalancer.Type.

Link

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

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_elasticloadbalancingv2 as elbv2

cfn_load_balancer_props = elbv2.CfnLoadBalancerProps(
    ip_address_type="ipAddressType",
    load_balancer_attributes=[elbv2.CfnLoadBalancer.LoadBalancerAttributeProperty(
        key="key",
        value="value"
    )],
    name="name",
    scheme="scheme",
    security_groups=["securityGroups"],
    subnet_mappings=[elbv2.CfnLoadBalancer.SubnetMappingProperty(
        subnet_id="subnetId",

        # the properties below are optional
        allocation_id="allocationId",
        i_pv6_address="iPv6Address",
        private_iPv4_address="privateIPv4Address"
    )],
    subnets=["subnets"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    type="type"
)

Attributes

ip_address_type

AWS::ElasticLoadBalancingV2::LoadBalancer.IpAddressType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype

Return type

Optional[str]

load_balancer_attributes

AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttributes.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattributes

Return type

Union[IResolvable, List[Union[IResolvable, LoadBalancerAttributeProperty]], None]

name

AWS::ElasticLoadBalancingV2::LoadBalancer.Name.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-name

Return type

Optional[str]

scheme

AWS::ElasticLoadBalancingV2::LoadBalancer.Scheme.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-scheme

Return type

Optional[str]

security_groups

AWS::ElasticLoadBalancingV2::LoadBalancer.SecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-securitygroups

Return type

Optional[List[str]]

subnet_mappings

AWS::ElasticLoadBalancingV2::LoadBalancer.SubnetMappings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-subnetmappings

Return type

Union[IResolvable, List[Union[IResolvable, SubnetMappingProperty]], None]

subnets

AWS::ElasticLoadBalancingV2::LoadBalancer.Subnets.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-subnets

Return type

Optional[List[str]]

tags

AWS::ElasticLoadBalancingV2::LoadBalancer.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-tags

Return type

Optional[List[CfnTag]]

type

AWS::ElasticLoadBalancingV2::LoadBalancer.Type.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-type

Return type

Optional[str]