Skip to content

elb

LoadBalancer (NetworkEntity)

Attributes:

Name Type Description
name

The name of the load balancer.

scheme_type LoadBalancerSchemeType

The scheme type (internal or internet-facing).

load_balancer_type LoadBalancerType

The type of the load balancer (network or application).

load_balancer_arn str

The ARN of the load balancer.

target_groups List[LoadBalancerTargetGroup]

The target groups associated with this LB.

listener_ports List[int]

The ports the listeners associated with this LB are configured to.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

LoadBalancerRawData dataclass

LoadBalancerRawData(subnets_ids: 'List[str]' = , security_groups_ids: 'List[str]' = , subnet_mapping: 'List[LoadBalancerSubnetMapping]' = )

LoadBalancerSchemeType (Enum)

An enumeration.

LoadBalancerSubnetMapping dataclass

LoadBalancerSubnetMapping(allocation_id: 'str', private_ipv4_address: 'str', subnet_id: 'str')

LoadBalancerType (Enum)

An enumeration.

LoadBalancerListener (AwsResource)

Attributes:

Name Type Description
listener_arn str

The ARN of this listener.

listener_port int

The port this listener listens on.

listener_protocol str

The protocol the listener listens on.

load_balancer_arn str

The ARN of the load balancer the listener is attached to.

default_action_type str

The default action type of this listener.

redirect_action_protocol Optional[str]

The redirect protocol, if the redirect action is configured (None otherwise).

redirect_action_port Optional[str]

The redirect port, if the redirect action is configured (None otherwise).

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

LoadBalancerTarget (AwsResource)

Attributes:

Name Type Description
target_group_arn str

The ARN of the target group this target belongs to.

target_id str

The ID of this target.

port int

The port this target listens on.

target_instance

Set to an Ec2Instance of applicable.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

LoadBalancerTargetGroup (AwsResource)

Attributes:

Name Type Description
port int

The port the target group listens on.

protocol IpProtocol

The protocol the target group listens to.

vpc_id str

The VPC the target group is in.

target_group_arn str

The ARN of the target group.

target_group_name str

The name of the target group.

target_type str

The type of the target, types vary based on the type of the load balancer itself.

targets List[LoadBalancerTarget]

The targets within this group.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

LoadBalancerTargetGroupAssociation (AwsResource)

Attributes:

Name Type Description
target_group_arns List[str]

The ARNs of the target groups being associated.

load_balancer_arn str

The ARN of the load balancer the groups are being associated to.

port int

The port of the target groups.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process

LoadBalancerAccessLogs dataclass

Attributes:

Name Type Description
bucket str

The S3 bucket to store logs into.

prefix str

The S3 bucket prefix (optional).

enable

Indication if access logs are enabled.

LoadBalancerAttributes (AwsResource)

Attributes:

Name Type Description
load_balancer_arn str

The ARN of the load balancer.

drop_invalid_header_fields Optional[bool]

An indication if the application load balancer remove invalid http headers or send to the targets as is.

access_logs Optional[LoadBalancerAccessLogs]

Block of settings for this load balancer access logs.

custom_invalidation(self) inherited

A list of manual reasons why this resource should be invalidated

exclude_from_invalidation(self) inherited

A list of attributes that should be excluded from the invalidation process