CfnLoadBalancer

class aws_cdk.aws_elasticloadbalancing.CfnLoadBalancer(scope, id, *, listeners, access_logging_policy=None, app_cookie_stickiness_policy=None, availability_zones=None, connection_draining_policy=None, connection_settings=None, cross_zone=None, health_check=None, instances=None, lb_cookie_stickiness_policy=None, load_balancer_name=None, policies=None, scheme=None, security_groups=None, subnets=None, tags=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::ElasticLoadBalancing::LoadBalancer.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html

CloudformationResource

AWS::ElasticLoadBalancing::LoadBalancer

Create a new AWS::ElasticLoadBalancing::LoadBalancer.

Parameters
  • scope (Construct) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • listeners (Union[IResolvable, List[Union[ListenersProperty, IResolvable]]]) – AWS::ElasticLoadBalancing::LoadBalancer.Listeners.

  • access_logging_policy (Union[IResolvable, AccessLoggingPolicyProperty, None]) – AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy.

  • app_cookie_stickiness_policy (Union[IResolvable, List[Union[IResolvable, AppCookieStickinessPolicyProperty]], None]) – AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy.

  • availability_zones (Optional[List[str]]) – AWS::ElasticLoadBalancing::LoadBalancer.AvailabilityZones.

  • connection_draining_policy (Union[IResolvable, ConnectionDrainingPolicyProperty, None]) – AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy.

  • connection_settings (Union[IResolvable, ConnectionSettingsProperty, None]) – AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings.

  • cross_zone (Union[bool, IResolvable, None]) – AWS::ElasticLoadBalancing::LoadBalancer.CrossZone.

  • health_check (Union[IResolvable, HealthCheckProperty, None]) – AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck.

  • instances (Optional[List[str]]) – AWS::ElasticLoadBalancing::LoadBalancer.Instances.

  • lb_cookie_stickiness_policy (Union[IResolvable, List[Union[IResolvable, LBCookieStickinessPolicyProperty]], None]) – AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy.

  • load_balancer_name (Optional[str]) – AWS::ElasticLoadBalancing::LoadBalancer.LoadBalancerName.

  • policies (Union[IResolvable, List[Union[IResolvable, PoliciesProperty]], None]) – AWS::ElasticLoadBalancing::LoadBalancer.Policies.

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

  • security_groups (Optional[List[str]]) – AWS::ElasticLoadBalancing::LoadBalancer.SecurityGroups.

  • subnets (Optional[List[str]]) – AWS::ElasticLoadBalancing::LoadBalancer.Subnets.

  • tags (Optional[List[CfnTag]]) – AWS::ElasticLoadBalancing::LoadBalancer.Tags.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::ElasticLoadBalancing::LoadBalancer'
access_logging_policy

AWS::ElasticLoadBalancing::LoadBalancer.AccessLoggingPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-accessloggingpolicy

Return type

Union[IResolvable, AccessLoggingPolicyProperty, None]

AWS::ElasticLoadBalancing::LoadBalancer.AppCookieStickinessPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-appcookiestickinesspolicy

Return type

Union[IResolvable, List[Union[IResolvable, AppCookieStickinessPolicyProperty]], None]

attr_canonical_hosted_zone_name

CanonicalHostedZoneName

Type

cloudformationAttribute

Return type

str

attr_canonical_hosted_zone_name_id

CanonicalHostedZoneNameID

Type

cloudformationAttribute

Return type

str

attr_dns_name

DNSName

Type

cloudformationAttribute

Return type

str

attr_source_security_group_group_name

SourceSecurityGroup.GroupName

Type

cloudformationAttribute

Return type

str

attr_source_security_group_owner_alias

SourceSecurityGroup.OwnerAlias

Type

cloudformationAttribute

Return type

str

availability_zones

AWS::ElasticLoadBalancing::LoadBalancer.AvailabilityZones.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-availabilityzones

Return type

Optional[List[str]]

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

connection_draining_policy

AWS::ElasticLoadBalancing::LoadBalancer.ConnectionDrainingPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-connectiondrainingpolicy

Return type

Union[IResolvable, ConnectionDrainingPolicyProperty, None]

connection_settings

AWS::ElasticLoadBalancing::LoadBalancer.ConnectionSettings.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-connectionsettings

Return type

Union[IResolvable, ConnectionSettingsProperty, None]

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

cross_zone

AWS::ElasticLoadBalancing::LoadBalancer.CrossZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-crosszone

Return type

Union[bool, IResolvable, None]

health_check

AWS::ElasticLoadBalancing::LoadBalancer.HealthCheck.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-healthcheck

Return type

Union[IResolvable, HealthCheckProperty, None]

instances

AWS::ElasticLoadBalancing::LoadBalancer.Instances.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-instances

Return type

Optional[List[str]]

AWS::ElasticLoadBalancing::LoadBalancer.LBCookieStickinessPolicy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-lbcookiestickinesspolicy

Return type

Union[IResolvable, List[Union[IResolvable, LBCookieStickinessPolicyProperty]], None]

listeners

AWS::ElasticLoadBalancing::LoadBalancer.Listeners.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-listeners

Return type

Union[IResolvable, List[Union[ListenersProperty, IResolvable]]]

load_balancer_name

AWS::ElasticLoadBalancing::LoadBalancer.LoadBalancerName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-elbname

Return type

Optional[str]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

node

The construct tree node associated with this construct.

Return type

ConstructNode

policies

AWS::ElasticLoadBalancing::LoadBalancer.Policies.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-policies

Return type

Union[IResolvable, List[Union[IResolvable, PoliciesProperty]], None]

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

scheme

AWS::ElasticLoadBalancing::LoadBalancer.Scheme.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-scheme

Return type

Optional[str]

security_groups

AWS::ElasticLoadBalancing::LoadBalancer.SecurityGroups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-securitygroups

Return type

Optional[List[str]]

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

subnets

AWS::ElasticLoadBalancing::LoadBalancer.Subnets.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-ec2-elb-subnets

Return type

Optional[List[str]]

tags

AWS::ElasticLoadBalancing::LoadBalancer.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html#cfn-elasticloadbalancing-loadbalancer-tags

Return type

TagManager

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

AccessLoggingPolicyProperty

class CfnLoadBalancer.AccessLoggingPolicyProperty(*, enabled, s3_bucket_name, emit_interval=None, s3_bucket_prefix=None)

Bases: object

Parameters
  • enabled (Union[bool, IResolvable]) – CfnLoadBalancer.AccessLoggingPolicyProperty.Enabled.

  • s3_bucket_name (str) – CfnLoadBalancer.AccessLoggingPolicyProperty.S3BucketName.

  • emit_interval (Union[int, float, None]) – CfnLoadBalancer.AccessLoggingPolicyProperty.EmitInterval.

  • s3_bucket_prefix (Optional[str]) – CfnLoadBalancer.AccessLoggingPolicyProperty.S3BucketPrefix.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html

Attributes

emit_interval

CfnLoadBalancer.AccessLoggingPolicyProperty.EmitInterval.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-emitinterval

Return type

Union[int, float, None]

enabled

CfnLoadBalancer.AccessLoggingPolicyProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-enabled

Return type

Union[bool, IResolvable]

s3_bucket_name

CfnLoadBalancer.AccessLoggingPolicyProperty.S3BucketName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-s3bucketname

Return type

str

s3_bucket_prefix

CfnLoadBalancer.AccessLoggingPolicyProperty.S3BucketPrefix.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-accessloggingpolicy.html#cfn-elb-accessloggingpolicy-s3bucketprefix

Return type

Optional[str]

AppCookieStickinessPolicyProperty

class CfnLoadBalancer.AppCookieStickinessPolicyProperty(*, cookie_name, policy_name)

Bases: object

Parameters
  • cookie_name (str) – CfnLoadBalancer.AppCookieStickinessPolicyProperty.CookieName.

  • policy_name (str) – CfnLoadBalancer.AppCookieStickinessPolicyProperty.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html

Attributes

cookie_name

CfnLoadBalancer.AppCookieStickinessPolicyProperty.CookieName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html#cfn-elb-appcookiestickinesspolicy-cookiename

Return type

str

policy_name

CfnLoadBalancer.AppCookieStickinessPolicyProperty.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-AppCookieStickinessPolicy.html#cfn-elb-appcookiestickinesspolicy-policyname

Return type

str

ConnectionDrainingPolicyProperty

class CfnLoadBalancer.ConnectionDrainingPolicyProperty(*, enabled, timeout=None)

Bases: object

Parameters
  • enabled (Union[bool, IResolvable]) – CfnLoadBalancer.ConnectionDrainingPolicyProperty.Enabled.

  • timeout (Union[int, float, None]) – CfnLoadBalancer.ConnectionDrainingPolicyProperty.Timeout.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html

Attributes

enabled

CfnLoadBalancer.ConnectionDrainingPolicyProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html#cfn-elb-connectiondrainingpolicy-enabled

Return type

Union[bool, IResolvable]

timeout

CfnLoadBalancer.ConnectionDrainingPolicyProperty.Timeout.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectiondrainingpolicy.html#cfn-elb-connectiondrainingpolicy-timeout

Return type

Union[int, float, None]

ConnectionSettingsProperty

class CfnLoadBalancer.ConnectionSettingsProperty(*, idle_timeout)

Bases: object

Parameters

idle_timeout (Union[int, float]) – CfnLoadBalancer.ConnectionSettingsProperty.IdleTimeout.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html

Attributes

idle_timeout

CfnLoadBalancer.ConnectionSettingsProperty.IdleTimeout.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-connectionsettings.html#cfn-elb-connectionsettings-idletimeout

Return type

Union[int, float]

HealthCheckProperty

class CfnLoadBalancer.HealthCheckProperty(*, healthy_threshold, interval, target, timeout, unhealthy_threshold)

Bases: object

Parameters
  • healthy_threshold (str) – CfnLoadBalancer.HealthCheckProperty.HealthyThreshold.

  • interval (str) – CfnLoadBalancer.HealthCheckProperty.Interval.

  • target (str) – CfnLoadBalancer.HealthCheckProperty.Target.

  • timeout (str) – CfnLoadBalancer.HealthCheckProperty.Timeout.

  • unhealthy_threshold (str) – CfnLoadBalancer.HealthCheckProperty.UnhealthyThreshold.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html

Attributes

healthy_threshold

CfnLoadBalancer.HealthCheckProperty.HealthyThreshold.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-healthythreshold

Return type

str

interval

CfnLoadBalancer.HealthCheckProperty.Interval.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-interval

Return type

str

target

CfnLoadBalancer.HealthCheckProperty.Target.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-target

Return type

str

timeout

CfnLoadBalancer.HealthCheckProperty.Timeout.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-timeout

Return type

str

unhealthy_threshold

CfnLoadBalancer.HealthCheckProperty.UnhealthyThreshold.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-health-check.html#cfn-elb-healthcheck-unhealthythreshold

Return type

str

LBCookieStickinessPolicyProperty

class CfnLoadBalancer.LBCookieStickinessPolicyProperty(*, cookie_expiration_period=None, policy_name=None)

Bases: object

Parameters
  • cookie_expiration_period (Optional[str]) – CfnLoadBalancer.LBCookieStickinessPolicyProperty.CookieExpirationPeriod.

  • policy_name (Optional[str]) – CfnLoadBalancer.LBCookieStickinessPolicyProperty.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html

Attributes

cookie_expiration_period

CfnLoadBalancer.LBCookieStickinessPolicyProperty.CookieExpirationPeriod.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html#cfn-elb-lbcookiestickinesspolicy-cookieexpirationperiod

Return type

Optional[str]

policy_name

CfnLoadBalancer.LBCookieStickinessPolicyProperty.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-LBCookieStickinessPolicy.html#cfn-elb-lbcookiestickinesspolicy-policyname

Return type

Optional[str]

ListenersProperty

class CfnLoadBalancer.ListenersProperty(*, instance_port, load_balancer_port, protocol, instance_protocol=None, policy_names=None, ssl_certificate_id=None)

Bases: object

Parameters
  • instance_port (str) – CfnLoadBalancer.ListenersProperty.InstancePort.

  • load_balancer_port (str) – CfnLoadBalancer.ListenersProperty.LoadBalancerPort.

  • protocol (str) – CfnLoadBalancer.ListenersProperty.Protocol.

  • instance_protocol (Optional[str]) – CfnLoadBalancer.ListenersProperty.InstanceProtocol.

  • policy_names (Optional[List[str]]) – CfnLoadBalancer.ListenersProperty.PolicyNames.

  • ssl_certificate_id (Optional[str]) – CfnLoadBalancer.ListenersProperty.SSLCertificateId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html

Attributes

instance_port

CfnLoadBalancer.ListenersProperty.InstancePort.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-instanceport

Return type

str

instance_protocol

CfnLoadBalancer.ListenersProperty.InstanceProtocol.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-instanceprotocol

Return type

Optional[str]

load_balancer_port

CfnLoadBalancer.ListenersProperty.LoadBalancerPort.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-loadbalancerport

Return type

str

policy_names

CfnLoadBalancer.ListenersProperty.PolicyNames.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-policynames

Return type

Optional[List[str]]

protocol

CfnLoadBalancer.ListenersProperty.Protocol.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-protocol

Return type

str

ssl_certificate_id

CfnLoadBalancer.ListenersProperty.SSLCertificateId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-listener.html#cfn-ec2-elb-listener-sslcertificateid

Return type

Optional[str]

PoliciesProperty

class CfnLoadBalancer.PoliciesProperty(*, attributes, policy_name, policy_type, instance_ports=None, load_balancer_ports=None)

Bases: object

Parameters
  • attributes (Union[List[Any], IResolvable]) – CfnLoadBalancer.PoliciesProperty.Attributes.

  • policy_name (str) – CfnLoadBalancer.PoliciesProperty.PolicyName.

  • policy_type (str) – CfnLoadBalancer.PoliciesProperty.PolicyType.

  • instance_ports (Optional[List[str]]) – CfnLoadBalancer.PoliciesProperty.InstancePorts.

  • load_balancer_ports (Optional[List[str]]) – CfnLoadBalancer.PoliciesProperty.LoadBalancerPorts.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html

Attributes

attributes

CfnLoadBalancer.PoliciesProperty.Attributes.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-attributes

Return type

Union[List[Any], IResolvable]

instance_ports

CfnLoadBalancer.PoliciesProperty.InstancePorts.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-instanceports

Return type

Optional[List[str]]

load_balancer_ports

CfnLoadBalancer.PoliciesProperty.LoadBalancerPorts.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-loadbalancerports

Return type

Optional[List[str]]

policy_name

CfnLoadBalancer.PoliciesProperty.PolicyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-policyname

Return type

str

policy_type

CfnLoadBalancer.PoliciesProperty.PolicyType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html#cfn-ec2-elb-policy-policytype

Return type

str